mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-23 21:46:40 +01:00
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
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue