Better fix for #312, null checking for the chisel item in the GUI

This commit is contained in:
tterrag1098 committed 2015-05-28 13:42:07 -04:00
1 parent daf95276af
commit 74bb2b700d
5 files changed
+11 -8

No files matched your search

@@ -50,7 +50,7 @@ public class ContainerChisel extends Container {
}
chisel = inventoryplayer.getCurrentItem();
if (chisel.stackTagCompound != null) {
if (chisel != null && chisel.stackTagCompound != null) {
ItemStack stack = ItemStack.loadItemStackFromNBT(chisel.stackTagCompound.getCompoundTag("chiselTarget"));
inventory.setInventorySlotContents(InventoryChiselSelection.normalSlots, stack);
}