mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-27 15:43:14 +00:00
Better fix for #312, null checking for the chisel item in the GUI
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user