This commit is contained in:
Modmuss50 2015-11-11 17:08:41 +00:00
parent 842fa421ae
commit 08b570ea36
3 changed files with 13 additions and 1 deletions

View file

@ -17,10 +17,17 @@ public class CompatManager {
public static boolean isIC2Loaded = false;
public static boolean isIC2ClassicLoaded = false;
public static boolean isClassicEnet = false;
public CompatManager() {
isIC2Loaded = Loader.isModLoaded("IC2");
isIC2ClassicLoaded = IC2Classic.isIc2ClassicLoaded();
if(isIC2ClassicLoaded){
isClassicEnet = true;
}
if(Loader.isModLoaded("Uncomplication")){
isClassicEnet = true;
}
registerCompact(CompatModuleWaila.class, "Waila");
registerCompact(RecipesIC2.class, "IC2");
@ -71,4 +78,5 @@ public class CompatManager {
return false;
}
}
}

View file

@ -231,7 +231,7 @@ public class ModBlocks {
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
registerOreDict();
Core.logHelper.info("TechReborns Blocks Loaded");
}

View file

@ -18,6 +18,7 @@ import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import reborncore.api.IListInfoProvider;
import techreborn.api.power.IEnergyInterfaceTile;
import techreborn.compat.CompatManager;
import techreborn.config.ConfigTechReborn;
import java.util.List;
@ -283,6 +284,9 @@ public abstract class TilePowerAcceptor extends RFProviderTile implements
if (getMaxOutput() != 0) {
info.add(ChatFormatting.LIGHT_PURPLE + "Max Output " + ChatFormatting.GREEN + getEUString(getMaxOutput()));
}
if(CompatManager.isClassicEnet && isRealTile){
info.add(ChatFormatting.LIGHT_PURPLE + "Stored energy " + ChatFormatting.GREEN + getEUString(energy));
}
}
private String getEUString(double euValue) {