diff --git a/src/exter/foundry/tileentity/TileEntityFoundry.java b/src/exter/foundry/tileentity/TileEntityFoundry.java index 8a3600ca..49999b42 100644 --- a/src/exter/foundry/tileentity/TileEntityFoundry.java +++ b/src/exter/foundry/tileentity/TileEntityFoundry.java @@ -13,6 +13,7 @@ import com.google.common.io.ByteArrayDataInput; import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.Loader; import buildcraft.api.power.IPowerReceptor; import buildcraft.api.power.PowerHandler; import buildcraft.api.power.PowerHandler.PowerReceiver; @@ -425,7 +426,7 @@ public int getMaxEnergyStored(ForgeDirection from) @Override public void onChunkUnload() { - if(added_enet && Info.isIc2Available()) + if(added_enet && Loader.isModLoaded("IC2")) { MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this)); added_enet = false; @@ -434,7 +435,7 @@ public void onChunkUnload() public void LoadEnet() { - if(!added_enet && !FMLCommonHandler.instance().getEffectiveSide().isClient() && Info.isIc2Available()) + if(!added_enet && !FMLCommonHandler.instance().getEffectiveSide().isClient() && Loader.isModLoaded("IC2")) { MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this)); added_enet = true;