From 091b6cbfc3f5dbc4fc3288f47b5b19c6cf8339bf Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 1 Feb 2016 17:40:17 +0100 Subject: [PATCH] Fix capabilities --- .../actuallyadditions/mod/tile/TileEntityInventoryBase.java | 5 +++++ 1 file changed, 5 insertions(+) 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){