diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/hotbar/DefaultHotbar.java b/BauSystem_Main/src/de/steamwar/bausystem/features/hotbar/DefaultHotbar.java index 9fdc9736..25760ccb 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/hotbar/DefaultHotbar.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/hotbar/DefaultHotbar.java @@ -70,7 +70,11 @@ public class DefaultHotbar { if (yapionAnyType instanceof YAPIONValue) { hotbar[integer] = null; } else { - hotbar[integer] = (ItemStack) YAPIONDeserializer.deserialize((YAPIONObject) yapionAnyType); + try { + hotbar[integer] = YAPIONDeserializer.deserialize((YAPIONObject) yapionAnyType); + } catch (Exception e) { + hotbar[integer] = null; + } } }); return hotbar;