diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java index 5832c1dfe..fc5e1bfff 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java @@ -211,7 +211,7 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements @Override public T getCapability(Capability capability, EnumFacing facing){ if(this.hasInvWrapperCapabilities() && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY){ - return (T)this.invWrappers[facing.ordinal()]; + return (T)this.invWrappers[facing == null ? 0 : facing.ordinal()]; } else{ return super.getCapability(capability, facing);