mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +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
@ -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 New Issue
Block a user