Added support for EE3-Compataibilty

This commit is contained in:
modmuss50 2015-07-06 20:33:50 +01:00
parent 91c9a28796
commit fdc23c5ae9

View file

@ -6,6 +6,7 @@ import com.pahimar.ee3.api.exchange.RecipeRegistryProxy;
import com.pahimar.ee3.exchange.EnergyValueRegistry; import com.pahimar.ee3.exchange.EnergyValueRegistry;
import com.pahimar.ee3.exchange.OreStack; import com.pahimar.ee3.exchange.OreStack;
import com.pahimar.ee3.exchange.WrappedStack; import com.pahimar.ee3.exchange.WrappedStack;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@ -145,6 +146,7 @@ public class EmcValues implements ICompatModule {
@Override @Override
public void postInit(FMLPostInitializationEvent event) { public void postInit(FMLPostInitializationEvent event) {
if(!Loader.isModLoaded("EE3Compatibility")){
MinecraftForge.EVENT_BUS.register(this); MinecraftForge.EVENT_BUS.register(this);
addOre("ingotCopper", 128); addOre("ingotCopper", 128);
addOre("ingotSilver", 1024); addOre("ingotSilver", 1024);
@ -161,19 +163,25 @@ public class EmcValues implements ICompatModule {
addOre("dustLapis", 864); addOre("dustLapis", 864);
addOre("dustSilver", 1024); addOre("dustSilver", 1024);
addOre("dustTin", 256); addOre("dustTin", 256);
}
if(!Loader.isModLoaded("EE3Compatibility")){
addStack(IC2Items.getItem("rubber"), 32); addStack(IC2Items.getItem("rubber"), 32);
addStack(IC2Items.getItem("carbonPlate"), 256); addStack(IC2Items.getItem("carbonPlate"), 256);
addStack(Ic2Items.energyCrystal, 32896 / 9); addStack(Ic2Items.energyCrystal, 32896 / 9);
addStack(Ic2Items.chargingEnergyCrystal, 32896 / 9); addStack(Ic2Items.chargingEnergyCrystal, 32896 / 9);
addStack(IC2Items.getItem("refinedIronIngot"), 512); addStack(IC2Items.getItem("refinedIronIngot"), 512);
addStack(Ic2Items.plateadviron, 512); addStack(Ic2Items.plateadviron, 512);
addStack(ItemPlates.getPlateByName("steel"), 512);
addStack(Ic2Items.reBattery, 608); addStack(Ic2Items.reBattery, 608);
addStack(Ic2Items.chargedReBattery, 608); addStack(Ic2Items.chargedReBattery, 608);
}
addStack(ItemPlates.getPlateByName("steel"), 512);
addStack(ItemParts.getPartByName("lazuriteChunk"), 7776); addStack(ItemParts.getPartByName("lazuriteChunk"), 7776);
if(!Loader.isModLoaded("EE3Compatibility")){
addIC2Handlers(); addIC2Handlers();
} }
}
@Override @Override
public void serverStarting(FMLServerStartingEvent event) { public void serverStarting(FMLServerStartingEvent event) {