Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.

Commit

Permalink
Avoid using ic2.api.info.Info.isIc2Available()
Browse files Browse the repository at this point in the history
  • Loading branch information
EXTER7 committed Dec 25, 2013
1 parent 1079c93 commit c44ae9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exter/foundry/tileentity/TileEntityFoundry.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit c44ae9e

Please sign in to comment.