Fix recycler slots not allowing items in it.

This commit is contained in:
modmuss50 2019-08-07 20:54:44 +01:00
parent 423f5ebab4
commit e8a77a1d75

View file

@ -204,7 +204,7 @@ public class RecyclerBlockEntity extends PowerAcceptorBlockEntity
@Override
public BuiltContainer createContainer(int syncID, PlayerEntity player) {
return new ContainerBuilder("recycler").player(player.inventory).inventory().hotbar().addInventory()
.blockEntity(this).slot(0, 55, 45, itemStack -> itemStack.getItem() instanceof IUpgrade).outputSlot(1, 101, 45).energySlot(2, 8, 72).syncEnergyValue()
.blockEntity(this).slot(0, 55, 45, itemStack -> !(itemStack.getItem() instanceof IUpgrade)).outputSlot(1, 101, 45).energySlot(2, 8, 72).syncEnergyValue()
.syncIntegerValue(this::getProgress, this::setProgress).addInventory().create(this, syncID);
}
}