From aba6bf354db98dce665fa370d88da76cf3a9f19f Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Thu, 7 Nov 2013 08:43:35 +0100 Subject: [PATCH] NPE-Fix for syncronized explosions --- .../minecraft/limitedcreative/blockstate/SyncronizedModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/blockstate/SyncronizedModel.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/blockstate/SyncronizedModel.java index 242316d..fb9006d 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/blockstate/SyncronizedModel.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/blockstate/SyncronizedModel.java @@ -61,7 +61,7 @@ public class SyncronizedModel extends AbstractModel implements DBModel { public Map getRestrictedStates(List blocks) { Map ret = new HashMap(); for (Map.Entry entry : getStates(blocks).entrySet()) { - ret.put(entry.getKey(), entry.getValue().isRestricted()); + ret.put(entry.getKey(), entry.getValue() != null && entry.getValue().isRestricted()); } return ret; }