diff --git a/common/buildcraft/transport/Gate.java b/common/buildcraft/transport/Gate.java index 1655c60b..b7f6084a 100644 --- a/common/buildcraft/transport/Gate.java +++ b/common/buildcraft/transport/Gate.java @@ -325,7 +325,10 @@ public final class Gate implements IGate, ISidedStatementContainer, IRedstoneSta public void openGui(EntityPlayer player) { if (!player.worldObj.isRemote) { player.openGui(BuildCraftTransport.instance, GuiIds.GATES, pipe.container.getWorldObj(), pipe.container.xCoord, pipe.container.yCoord, pipe.container.zCoord); - ((ContainerGateInterface) player.openContainer).setGate(direction.ordinal()); + // ThermalExpansion Autonomous Activator crash fix + if (player.openContainer instanceof ContainerGateInterface) { + ((ContainerGateInterface) player.openContainer).setGate(direction.ordinal()); + } } }