aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/registration
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-10-20 22:56:00 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-10-20 22:56:00 +1000
commit71884a48d2797c20a82404e12ecdc6f3f4761c8a (patch)
tree6b10bba81e9dad6bd312142eb774d7df9229b224 /src/Java/gtPlusPlus/xmod/gregtech/registration
parentd6c2e9fd582594f9e19f732398d1c16d20d3b38e (diff)
downloadGT5-Unofficial-71884a48d2797c20a82404e12ecdc6f3f4761c8a.tar.gz
GT5-Unofficial-71884a48d2797c20a82404e12ecdc6f3f4761c8a.tar.bz2
GT5-Unofficial-71884a48d2797c20a82404e12ecdc6f3f4761c8a.zip
$ Fixed A small mistake with Void Metal and the OreDictionary.
+ Added a 'hopeful' save for fluids when the TileEntity is broken.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/registration')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
index 269f9e1340..a56bb60570 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
@@ -216,17 +216,21 @@ public class GregtechConduits {
String output = materialName.substring(0, 1).toUpperCase() + materialName.substring(1);
output = output.replace("-", "").replace("_", "").replace(" ", "");
+ if (output.equals("VoidMetal")){
+ output = "Void";
+ }
+
Utils.LOG_INFO("Generating "+output+" pipes & respective recipes.");
ItemStack pipeIngot = UtilsItems.getItemStackOfAmountFromOreDict("ingot"+output, 1).copy();
ItemStack pipePlate = UtilsItems.getItemStackOfAmountFromOreDict("plate"+output, 1).copy();
//Check all pipes are not null
- Utils.LOG_WARNING("Generated pipeTiny from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Tiny"+output, 1) != null) ? true : false));
- Utils.LOG_WARNING("Generated pipeSmall from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Small"+output, 1) != null) ? true : false));
- Utils.LOG_WARNING("Generated pipeNormal from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Medium"+output, 1) != null) ? true : false));
- Utils.LOG_WARNING("Generated pipeLarge from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Large"+output, 1) != null) ? true : false));
- Utils.LOG_WARNING("Generated pipeHuge from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Huge"+output, 1) != null) ? true : false));
+ Utils.LOG_INFO("Generated pipeTiny from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Tiny"+output, 1) != null) ? true : false));
+ Utils.LOG_INFO("Generated pipeSmall from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Small"+output, 1) != null) ? true : false));
+ Utils.LOG_INFO("Generated pipeNormal from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Medium"+output, 1) != null) ? true : false));
+ Utils.LOG_INFO("Generated pipeLarge from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Large"+output, 1) != null) ? true : false));
+ Utils.LOG_INFO("Generated pipeHuge from "+ materialName +"? "+ ((UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Huge"+output, 1) != null) ? true : false));
int eut = 128;
if (
@@ -293,13 +297,16 @@ public class GregtechConduits {
UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Huge"+output, 1),
4*20, eut);
- if (eut < 512){
+ if (eut < 512 && !output.equals("Void")){
ItemStack pipePlateDouble = UtilsItems.getItemStackOfAmountFromOreDict("plateDouble"+output, 1).copy();
+ if (pipePlateDouble != null)
UtilsRecipe.recipeBuilder(
pipePlateDouble, "craftingToolHardHammer", pipePlateDouble,
pipePlateDouble, null, pipePlateDouble,
pipePlateDouble, "craftingToolWrench", pipePlateDouble,
UtilsItems.getItemStackOfAmountFromOreDict("pipe"+"Huge"+output, 1));
+ else
+ Utils.LOG_INFO("Failed to add a recipe for "+materialName+" Huge pipes. Double plates probably do not exist.");
}