aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java11
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java4
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java8
3 files changed, 15 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
index 7c395392a3..28692e25cb 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
@@ -132,6 +132,14 @@ public enum GregtechItemList implements GregtechItemContainer {
* MultiBlocks
*/
+
+ // Tier GT++ Casings
+ GTPP_Casing_ULV, GTPP_Casing_LV,
+ GTPP_Casing_MV, GTPP_Casing_HV,
+ GTPP_Casing_EV, GTPP_Casing_IV,
+ GTPP_Casing_LuV, GTPP_Casing_ZPM,
+ GTPP_Casing_UV, GTPP_Casing_MAX,
+
//IronBlastFurnace Machine_Bronze_BlastFurnace
Machine_Iron_BlastFurnace,
Casing_IronPlatedBricks,
@@ -288,6 +296,7 @@ public enum GregtechItemList implements GregtechItemContainer {
Machine_Adv_BlastFurnace,
Casing_Adv_BlastFurnace,
Machine_Adv_ImplosionCompressor,
+ Machine_Adv_DistillationTower,
//Advanced Vacuum Freezer
@@ -466,7 +475,7 @@ public enum GregtechItemList implements GregtechItemContainer {
Super_Chest_LV, Super_Chest_MV, Super_Chest_HV, Super_Chest_EV, Super_Chest_IV,
//Chunkloader
- GT_Chunkloader_HV, GT_Chunkloader_EV, GT_Chunkloader_IV,
+ GT_Chunkloader_HV, GT_Chunkloader_ZPM, GT_Chunkloader_IV,
//Wireless Chargers
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
index 4a6cad20c3..f41efe602a 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
@@ -770,7 +770,7 @@ public abstract class GregtechMeta_MultiBlockBase extends GT_MetaTileEntity_Mult
// We have Fluid Stacks we did not merge. Do we have space?
if (aOutputFluids.size() > 0) {
// Not enough space to add fluids.
- if (aOutputFluids.size() < aEmptyFluidHatches) {
+ if (aOutputFluids.size() > aEmptyFluidHatches) {
Logger.INFO("Failed to find enough space for all fluid outputs.");
return false;
}
@@ -790,7 +790,7 @@ public abstract class GregtechMeta_MultiBlockBase extends GT_MetaTileEntity_Mult
public static Method aLogger = null;
public void log(String s) {
- boolean reset = true;
+ boolean reset = false;
if (reset || aLogger == null) {
if (!AsmConfig.disableAllLogging) {
aLogger = ReflectionUtils.getMethod(
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
index b6e7b35d68..e72838fcad 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
@@ -267,12 +267,10 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
final int tFuelValue = this.getFuelValue(this.mFluid), tConsumed = this.consumedFluidPerOperation(this.mFluid);
if ((tFuelValue > 0) && (tConsumed > 0) && (this.mFluid.amount >= tConsumed)) {
final long tFluidAmountToUse = Math.min(this.mFluid.amount / tConsumed, (((this.maxEUOutput() * 20) + this.getMinimumStoredEU()) - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);
- if ((tFluidAmountToUse > 0) && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)){
- useFuel = Utils.invertBoolean(useFuel);
- int aSafeFloor= (int) Math.max(((tFluidAmountToUse * tConsumed)/3), 1);
- int toConsumeTrue = (int) (useFuel ? aSafeFloor : 0);
+ if ((tFluidAmountToUse > 0) && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)){
+ int aSafeFloor = (int) Math.max(((tFluidAmountToUse * tConsumed)/3), 1);
//Logger.INFO("True consumption: "+toConsumeTrue+" | Consuming this tick? "+useFuel);
- this.mFluid.amount -= toConsumeTrue;
+ this.mFluid.amount -= (int) aSafeFloor;
PollutionUtils.addPollution(getBaseMetaTileEntity(), 10 * getPollution());
}
}