NPE-Fix for syncronized explosions
This commit is contained in:
parent
010c0434c4
commit
aba6bf354d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public class SyncronizedModel extends AbstractModel implements DBModel {
|
|||
public Map<Block, Boolean> getRestrictedStates(List<Block> blocks) {
|
||||
Map<Block, Boolean> ret = new HashMap<Block, Boolean>();
|
||||
for (Map.Entry<Block, BlockState> entry : getStates(blocks).entrySet()) {
|
||||
ret.put(entry.getKey(), entry.getValue().isRestricted());
|
||||
ret.put(entry.getKey(), entry.getValue() != null && entry.getValue().isRestricted());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue