aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorkekzdealer <kekzdealer@gmail.com>2020-05-12 12:35:02 +0200
committerkekzdealer <kekzdealer@gmail.com>2020-05-12 12:35:02 +0200
commit52fc016dfb3a82be08f431061f78fc03ed746075 (patch)
treedbdfa68144e87860ec56ada83e3f748ceee8296c /src/main
parent062883ac848f354e1a1373c08baa0beb1c1602c5 (diff)
downloadGT5-Unofficial-52fc016dfb3a82be08f431061f78fc03ed746075.tar.gz
GT5-Unofficial-52fc016dfb3a82be08f431061f78fc03ed746075.tar.bz2
GT5-Unofficial-52fc016dfb3a82be08f431061f78fc03ed746075.zip
bug fix version bump, fixed input calculation
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java12
-rw-r--r--src/main/java/kekztech/KekzCore.java2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
index 914d09b7a5..fa2999e6e9 100644
--- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
+++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
@@ -378,7 +378,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
continue;
}
final BigInteger remcapActual = capacity.subtract(stored);
- final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) <= 0) ? remcapActual : MAX_LONG;
+ final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) > 0) ? remcapActual : MAX_LONG;
final long power = Math.min(eHatch.maxEUInput() * eHatch.maxAmperesIn(), recampLimited.longValue());
if(power <= eHatch.getEUVar()) {
eHatch.setEUVar(eHatch.getEUVar() - power);
@@ -390,7 +390,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
if(eDynamo == null || eDynamo.getBaseMetaTileEntity().isInvalidTileEntity()){
continue;
}
- final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) <= 0) ? stored : MAX_LONG;
+ final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) > 0) ? stored : MAX_LONG;
final long power = Math.min(eDynamo.maxEUOutput() * eDynamo.maxAmperesOut(), remStoredLimited.longValue());
if(eDynamo.getEUVar() <= eDynamo.maxEUStore() - power) {
eDynamo.setEUVar(eDynamo.getEUVar() + power);
@@ -403,7 +403,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
continue;
}
final BigInteger remcapActual = capacity.subtract(stored);
- final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) <= 0) ? remcapActual : MAX_LONG;
+ final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) > 0) ? remcapActual : MAX_LONG;
final long power = Math.min(eHatch.maxEUInput() * eHatch.maxAmperesIn(), recampLimited.longValue());
if(power <= eHatch.getEUVar()) {
eHatch.setEUVar(eHatch.getEUVar() - power);
@@ -415,7 +415,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
if(eDynamo == null || eDynamo.getBaseMetaTileEntity().isInvalidTileEntity()){
continue;
}
- final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) <= 0) ? stored : MAX_LONG;
+ final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) > 0) ? stored : MAX_LONG;
final long power = Math.min(eDynamo.maxEUOutput() * eDynamo.maxAmperesOut(), remStoredLimited.longValue());
if(eDynamo.getEUVar() <= eDynamo.maxEUStore() - power) {
eDynamo.setEUVar(eDynamo.getEUVar() + power);
@@ -428,7 +428,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
continue;
}
final BigInteger remcapActual = capacity.subtract(stored);
- final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) <= 0) ? remcapActual : MAX_LONG;
+ final BigInteger recampLimited = (MAX_LONG.compareTo(remcapActual) > 0) ? remcapActual : MAX_LONG;
final long power = Math.min(eHatch.maxEUInput() * eHatch.maxAmperesIn(), recampLimited.longValue());
if(power <= eHatch.getEUVar()) {
eHatch.setEUVar(eHatch.getEUVar() - power);
@@ -440,7 +440,7 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
if(eDynamo == null || eDynamo.getBaseMetaTileEntity().isInvalidTileEntity()){
continue;
}
- final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) <= 0) ? stored : MAX_LONG;
+ final BigInteger remStoredLimited = (MAX_LONG.compareTo(stored) > 0) ? stored : MAX_LONG;
final long power = Math.min(eDynamo.maxEUOutput() * eDynamo.maxAmperesOut(), remStoredLimited.longValue());
if(eDynamo.getEUVar() <= eDynamo.maxEUStore() - power) {
eDynamo.setEUVar(eDynamo.getEUVar() + power);
diff --git a/src/main/java/kekztech/KekzCore.java b/src/main/java/kekztech/KekzCore.java
index 50c0310b91..c1d452e8f4 100644
--- a/src/main/java/kekztech/KekzCore.java
+++ b/src/main/java/kekztech/KekzCore.java
@@ -41,7 +41,7 @@ public class KekzCore {
public static final String NAME = "KekzTech";
public static final String MODID = "kekztech";
- public static final String VERSION = "0.4.1";
+ public static final String VERSION = "0.4.1a";
public static final Logger LOGGER = LogManager.getLogger(NAME);