mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 10:55:06 +00:00
fluid packet decoder add slot restricted input
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user