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 b71af5608..cf2f10a9d 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java @@ -216,6 +216,11 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements return new ChatComponentText(StringUtil.localize(this.getName())); } + @Override + public boolean hasCapability(net.minecraftforge.common.capabilities.Capability capability, net.minecraft.util.EnumFacing facing){ + return this.getCapability(capability, facing) != null; + } + @Override public T getCapability(Capability capability, EnumFacing facing){ if(facing != null && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY){