aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-08-13 10:31:37 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-08-13 10:31:37 +1000
commit7e63e4fd8a705391c45e5940e00cda5964fbfd01 (patch)
tree5bdf3b81690dec7e08dec0ce93f17394f71c843c
parentb3f02e8575a46f1992f5f16b17f38499bb49481c (diff)
downloadGT5-Unofficial-7e63e4fd8a705391c45e5940e00cda5964fbfd01.tar.gz
GT5-Unofficial-7e63e4fd8a705391c45e5940e00cda5964fbfd01.tar.bz2
GT5-Unofficial-7e63e4fd8a705391c45e5940e00cda5964fbfd01.zip
$ Fixed Thermal Boiler not giving Obsidian when a Lava filter was not present. (Original Behaviour)
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
index b1b1b7cc6f..e6ff3593d9 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
@@ -71,8 +71,9 @@ extends GT_MetaTileEntity_MultiBlockBase
this.mEUt = getEUt();
this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ int loot_MAXCHANCE = 100000;
if (ItemList.Component_LavaFilter.get(1L).getClass().isInstance(aStack)) {
- int loot_MAXCHANCE = 100000;
+
if ((tRecipe.getOutput(0) != null) && (getBaseMetaTileEntity().getRandomNumber(loot_MAXCHANCE) < tRecipe.getOutputChance(0))) {
this.mOutputItems = new ItemStack[] { GT_Utility.copy(new Object[] { tRecipe.getOutput(0) }) };
}
@@ -91,11 +92,16 @@ extends GT_MetaTileEntity_MultiBlockBase
if ((tRecipe.getOutput(5) != null) && (getBaseMetaTileEntity().getRandomNumber(loot_MAXCHANCE) < tRecipe.getOutputChance(5))) {
this.mOutputItems = new ItemStack[] { GT_Utility.copy(new Object[] { tRecipe.getOutput(5) }) };
}
+
+ }
+ //Give Obsidian without Lava Filter
+ if (tFluid.isFluidEqual(GT_ModHandler.getLava(86))){
if ((tRecipe.getOutput(6) != null) && (getBaseMetaTileEntity().getRandomNumber(loot_MAXCHANCE) < tRecipe.getOutputChance(6))) {
this.mOutputItems = new ItemStack[] { GT_Utility.copy(new Object[] { tRecipe.getOutput(6) }) };
}
}
+
return true;
}
}