aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-12 14:36:03 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-12 14:36:03 +0000
commita16ac6d7b7cbc0659124d273580b3d527a650cfd (patch)
treeeda0078e9569ac19b17793945ec5462710d7820e /src/Java/gtPlusPlus/xmod/gregtech/api
parent8752df0b865c1a4104851da6ca100ad28952408d (diff)
downloadGT5-Unofficial-a16ac6d7b7cbc0659124d273580b3d527a650cfd.tar.gz
GT5-Unofficial-a16ac6d7b7cbc0659124d273580b3d527a650cfd.tar.bz2
GT5-Unofficial-a16ac6d7b7cbc0659124d273580b3d527a650cfd.zip
Post-Conflict Merge fixes.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java28
1 files changed, 14 insertions, 14 deletions
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 53b891ffb9..f9105dceb1 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
@@ -12,7 +12,7 @@ import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.core.lib.CORE;
-import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.core.util.math.MathUtils;
import gtPlusPlus.core.util.minecraft.gregtech.PollutionUtils;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
@@ -62,16 +62,16 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
@Override
public String[] getDescription() {
- String aPollution = "Causes between "+pollMin+" and "+pollMax+ " Pollution per second";
- return new String[]{
- this.mDescription,
- "Fuel Efficiency: " + this.getEfficiency() + "%",
- aPollution,
- CORE.GT_Tooltip};
- }
+ String aPollution = "Causes between "+pollMin+" and "+pollMax+ " Pollution per second";
+ return new String[]{
+ this.mDescription,
+ "Fuel Efficiency: " + this.getEfficiency() + "%",
+ aPollution,
+ CORE.GT_Tooltip};
}
+
@Override
public boolean onRightclick(final IGregTechTileEntity aBaseMetaTileEntity, final EntityPlayer aPlayer) {
if (aBaseMetaTileEntity.isClientSide()) {
@@ -198,8 +198,8 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
@Override
public void onPostTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
-
-
+
+
//super.onPostTick(aBaseMetaTileEntity, aTick);
/*if (aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isAllowedToWork() && aTick % 10L == 0L) {
@@ -250,9 +250,9 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
.getUniversalEnergyStored() >= this.maxEUOutput() + this.getMinimumStoredEU());
}*/
-
-
-
+
+
+
if (aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isAllowedToWork() && ((aTick % 10) == 0)) {
if (this.mFluid == null) {
if (aBaseMetaTileEntity.getUniversalEnergyStored() < (this.maxEUOutput() + this.getMinimumStoredEU())) {
@@ -295,7 +295,7 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
public int getPollution() {
return MathUtils.randInt(pollMin, pollMax);
}
-
+
public abstract GT_Recipe_Map getRecipes();
public abstract int getEfficiency();