aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/registration
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-10-25 22:58:27 +0100
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-10-25 22:58:27 +0100
commite617124ba171bdf0a5aa8165c63715634de3f3c3 (patch)
tree60ab6be780e6211217f40343ce4b2d5194d77c30 /src/Java/gtPlusPlus/xmod/gregtech/registration
parent5ea5183724134c5ca6259ef7efcf46209661ecc7 (diff)
downloadGT5-Unofficial-e617124ba171bdf0a5aa8165c63715634de3f3c3.tar.gz
GT5-Unofficial-e617124ba171bdf0a5aa8165c63715634de3f3c3.tar.bz2
GT5-Unofficial-e617124ba171bdf0a5aa8165c63715634de3f3c3.zip
+ Added a way to debug Chunk Loading via ASM injection into Forge.
+ Added new require function to TileEntityBase.java. + Added some logging to pipe generation.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/registration')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
index a800891102..77ffd98531 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
@@ -70,8 +70,9 @@ public class GregtechConduits {
if (Utils.getGregtechVersionAsInt() >= 50930) {
try {
Class<GT_MetaPipeEntity_Fluid> aPipeEntity = GT_MetaPipeEntity_Fluid.class;
- Constructor<GT_MetaPipeEntity_Fluid> constructor = aPipeEntity.getConstructor(new Class[]{int.class, String.class, String.class, float.class, Materials.class, int.class, int.class, boolean.class, int.class});
+ Constructor<GT_MetaPipeEntity_Fluid> constructor = aPipeEntity.getConstructor(int.class, String.class, String.class, float.class, Materials.class, int.class, int.class, boolean.class, int.class);
if (constructor != null) {
+ Logger.INFO("Generating Hexadecuple pipes.");
generateFluidMultiPipes(constructor, Materials.Copper, Materials.Copper.mName, "Copper", BasePipeHexadecupleID++, 60, 1000, true);
generateFluidMultiPipes(constructor, Materials.Bronze, Materials.Bronze.mName, "Bronze", BasePipeHexadecupleID++, 120, 2000, true);
generateFluidMultiPipes(constructor, Materials.Steel, Materials.Steel.mName, "Steel", BasePipeHexadecupleID++, 240, 2500, true);
@@ -85,8 +86,13 @@ public class GregtechConduits {
generateFluidMultiPipes(constructor, aPTFE, aPTFE.mName, "PTFE", BasePipeHexadecupleID++, 480, 600, true);
}
}
+ else {
+ Logger.INFO("Failed during Hexadecuple pipe generation.");
+ }
} catch (NoSuchMethodException | SecurityException e) {
+ Logger.INFO("Failed during Hexadecuple pipe generation. [Ecx]");
+ e.printStackTrace();
}
}
}
@@ -97,9 +103,17 @@ public class GregtechConduits {
aPipe = aClazz.newInstance(startID, "GT_Pipe_" + name + "_Hexadecuple",
"Hexadecuple " + displayName + " Fluid Pipe", 1.0F, aMaterial, baseCapacity, heatCapacity, gasProof,
16);
- GT_OreDictUnificator.registerOre("pipeHexadecuple" + aMaterial, aPipe.getStackForm(1L));
+ if (aPipe == null) {
+ Logger.INFO("Failed to Generate "+aMaterial+" Hexadecuple pipes.");
+ }
+ else {
+ Logger.INFO("Generated "+aMaterial+" Hexadecuple pipes.");
+ GT_OreDictUnificator.registerOre("pipeHexadecuple" + aMaterial, aPipe.getStackForm(1L));
+ }
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
| InvocationTargetException e) {
+ Logger.INFO("Failed to Generate "+aMaterial+" Hexadecuple pipes. [Ecx]");
+ e.printStackTrace();
}
}