mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Closes #1072
This commit is contained in:
parent
76263a56d9
commit
981a0c6ae1
1 changed files with 6 additions and 1 deletions
|
@ -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++){
|
||||
|
|
Loading…
Reference in a new issue