This commit is contained in:
Shadows_of_Fire 2018-04-13 12:47:34 -04:00
parent 76263a56d9
commit 981a0c6ae1

View file

@ -36,7 +36,12 @@ public class ContainerEnergizer extends Container{
this.energizer = (TileEntityEnergizer)tile;
InventoryPlayer inventory = player.inventory;
this.addSlotToContainer(new SlotItemHandlerUnconditioned(this.energizer.slots, 0, 76, 73));
this.addSlotToContainer(new SlotItemHandlerUnconditioned(this.energizer.slots, 0, 76, 73) {
@Override
public boolean isItemValid(ItemStack stack) {
return super.isItemValid(stack) && stack.hasCapability(CapabilityEnergy.ENERGY, null);
}
});
this.addSlotToContainer(new SlotOutput(this.energizer.slots, 1, 76, 42));
for(int i = 0; i < 3; i++){