Mod Compatible slot input checks
- Input slots of the schematicannon validates items using more generic checks, Fixes #4
This commit is contained in:
parent
f67a61290f
commit
8c7ba5f024
1 changed files with 3 additions and 2 deletions
|
@ -125,11 +125,12 @@ public class SchematicannonTileEntity extends SyncedTileEntity implements ITicka
|
||||||
case 1: // Blueprint output
|
case 1: // Blueprint output
|
||||||
return false;
|
return false;
|
||||||
case 2: // Book input
|
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
|
case 3: // Material List output
|
||||||
return false;
|
return false;
|
||||||
case 4: // Gunpowder
|
case 4: // Gunpowder
|
||||||
return stack.getItem() == Items.GUNPOWDER;
|
return stack.isItemEqual(new ItemStack(Items.GUNPOWDER));
|
||||||
default:
|
default:
|
||||||
return super.isItemValid(slot, stack);
|
return super.isItemValid(slot, stack);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue