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