Fix logistical transporters attempting to connect to chargepads
@@ -25,7 +25,9 @@ import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.NonNullList;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.math.AxisAlignedBB;
+import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.fml.common.FMLCommonHandler;
+import net.minecraftforge.items.CapabilityItemHandler;
public class TileEntityChargepad extends TileEntityEffectsBlock {
@@ -185,4 +187,12 @@ public class TileEntityChargepad extends TileEntityEffectsBlock {
public int[] getSlotsForFace(@Nonnull EnumFacing side) {
return InventoryUtils.EMPTY;
}
+
+ @Override
+ public boolean isCapabilityDisabled(@Nonnull Capability<?> capability, EnumFacing side) {
+ if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
+ return true;
+ }
+ return super.isCapabilityDisabled(capability, side);
+ }
}
