fluid packet decoder add slot restricted input

This commit is contained in:
asdflj committed 2022-11-17 10:55:21 +08:00
1 parent dc7c33bfa0
commit 7a18bed394
4 files changed
+32 -3

No files matched your search

@@ -136,4 +136,8 @@ public class ItemFluidPacket extends Item {
GameRegistry.registerItem(this, NameConst.ITEM_FLUID_PACKET, FluidCraft.MODID);
return this;
}
public ItemStack stack() {
return new ItemStack(this, 1);
}
}
@@ -158,6 +158,6 @@ public class TileFluidPacketDecoder extends AENetworkTile implements IGridTickab
@Override
public boolean isItemValidForSlot(int slot, ItemStack stack) {
return inventory.isItemValidForSlot(slot, stack);
return stack.getItem() instanceof ItemFluidPacket;
}
}