Skip to content

Commit

Permalink
fix crash when trying to store data to non existant chip in the warp …
Browse files Browse the repository at this point in the history
…controller
  • Loading branch information
zmaster587 committed Apr 14, 2018
1 parent dec531e commit a1997f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -794,7 +794,7 @@ else if (id == 1)
else if(id == 2)
stack = inv.getStackInSlot(COMPOSITION);

if(stack != null && stack.getItem() instanceof ItemData) {
if(!stack.isEmpty() && stack.getItem() instanceof ItemData) {
ItemData item = (ItemData) stack.getItem();
item.removeData(stack, this.addData(item.getData(stack), item.getDataType(stack), EnumFacing.UP, true), item.getDataType(stack));
}
Expand Down

0 comments on commit a1997f1

Please sign in to comment.