From 8c7ba5f0240f79bc9bf31f75a8fa88697c11ccca Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Tue, 6 Aug 2019 19:25:06 +0200 Subject: [PATCH] Mod Compatible slot input checks - Input slots of the schematicannon validates items using more generic checks, Fixes #4 --- .../modules/schematics/block/SchematicannonTileEntity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/modules/schematics/block/SchematicannonTileEntity.java b/src/main/java/com/simibubi/create/modules/schematics/block/SchematicannonTileEntity.java index a97e6ade9..db88fb3e3 100644 --- a/src/main/java/com/simibubi/create/modules/schematics/block/SchematicannonTileEntity.java +++ b/src/main/java/com/simibubi/create/modules/schematics/block/SchematicannonTileEntity.java @@ -125,11 +125,12 @@ public class SchematicannonTileEntity extends SyncedTileEntity implements ITicka case 1: // Blueprint output return false; case 2: // Book input - return stack.getItem() == Items.BOOK || stack.getItem() == Items.WRITTEN_BOOK; + return stack.isItemEqual(new ItemStack(Items.BOOK)) + || stack.isItemEqual(new ItemStack(Items.WRITTEN_BOOK)); case 3: // Material List output return false; case 4: // Gunpowder - return stack.getItem() == Items.GUNPOWDER; + return stack.isItemEqual(new ItemStack(Items.GUNPOWDER)); default: return super.isItemValid(slot, stack); }