diff --git a/src/java/cr0s/warpdrive/WarpDrive.java b/src/java/cr0s/warpdrive/WarpDrive.java index d23fe17b..0c26621b 100644 --- a/src/java/cr0s/warpdrive/WarpDrive.java +++ b/src/java/cr0s/warpdrive/WarpDrive.java @@ -107,6 +107,7 @@ import cr0s.warpdrive.world.HyperSpaceWorldGenerator; import cr0s.warpdrive.world.SpaceProvider; import cr0s.warpdrive.world.SpaceWorldGenerator; import dan200.computercraft.api.ComputerCraftAPI; +import extracells.api.ECApi; @Mod(modid = "WarpDrive", name = "WarpDrive", version = "1.3.0.0", dependencies = "required-after:IC2;" + " required-after:CoFHCore;" + " after:ComputerCraft;" + " after:OpenComputer;" + " after:CCTurtle;" + " after:gregtech_addon;" + " required-after:AppliedEnergistics;" + " after:AdvancedSolarPanel;" @@ -531,7 +532,7 @@ public class WarpDrive implements LoadingCallback { ItemStack antimatter = GameRegistry.findItemStack("ResonantInduction|Atomic", "antimatter", 1); antimatter.setItemDamage(0); ItemStack floppy = GameRegistry.findItemStack("ComputerCraft", "disk", 1); - ItemStack ultimateLappack = WarpDriveConfig.GS_ultimateLappack.copy(); + ItemStack ultimateLappack = new ItemStack(WarpDriveConfig.GS_ultimateLappack); // top = advancedCircuit, redstoneEnergycell, advancedCircuit // middle = fluix crystal, advancedMachine, fluix crystal @@ -555,7 +556,7 @@ public class WarpDrive implements LoadingCallback { // middle = Advanced circuit, Warp drive laser, Vibrant quartz glass // bottom = Advanced circuit, Certus quartz tank, Advanced alloy ItemStack isMiningLaserBlock = new ItemStack(miningLaserBlock, 1, 0); - ItemStack isCertusQuartzTank = new ItemStack(WarpDriveConfig.AEExtra_certusQuartzTank, 1, 0); + ItemStack isCertusQuartzTank = new ItemStack(ECApi.instance().blocks().certusTank().block(), 1, 0); GameRegistry.addRecipe(new ItemStack(powerLaserBlock), "caa", "czg", "cta", 'c', WarpDriveConfig.getIC2Item("advancedCircuit"), 'a', WarpDriveConfig.getIC2Item("advancedAlloy"), 'z', isMiningLaserBlock, 't', isCertusQuartzTank, 'g', vibrantQuartzGlass); diff --git a/src/java/cr0s/warpdrive/WarpDriveConfig.java b/src/java/cr0s/warpdrive/WarpDriveConfig.java index 29aa01c7..d1405fdb 100644 --- a/src/java/cr0s/warpdrive/WarpDriveConfig.java +++ b/src/java/cr0s/warpdrive/WarpDriveConfig.java @@ -63,9 +63,6 @@ public class WarpDriveConfig { public static int AS_Turbine, AS_deuteriumCell; public static int ICBM_Machine, ICBM_Missile, ICBM_Explosive; public static Item GS_ultimateLappack; - public static int UB_igneousStone, UB_igneousCobblestone, UB_metamorphicStone, UB_metamorphicCobblestone, UB_sedimentaryStone; - public static int NetherOres_count; - public static int[] NetherOres_block; public static ArrayList forceFieldBlocks; public static ArrayList minerOres, minerLogs, minerLeaves, scannerIgnoreBlocks; @@ -576,7 +573,7 @@ public class WarpDriveConfig { } private static void loadForgeMultipart() { - try { + try {//TODO: Update to 1.7 Class forgeMultipart_helper = Class.forName("codechicken.multipart.MultipartHelper"); forgeMultipart_helper_createTileFromNBT = forgeMultipart_helper.getDeclaredMethod("createTileFromNBT", World.class, NBTTagCompound.class); forgeMultipart_helper_sendDescPacket = forgeMultipart_helper.getDeclaredMethod("sendDescPacket", World.class, TileEntity.class);