aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java
diff options
context:
space:
mode:
authorYang Xizhi <60341015+GlodBlock@users.noreply.github.com>2022-04-02 00:10:16 +0800
committerGitHub <noreply@github.com>2022-04-01 18:10:16 +0200
commit7d9a80de8a1495a6e775af487259216e0097c144 (patch)
tree7aa7474a9dce9be52d6ac8640074e9bd8c52bb75 /src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java
parentefed035bb0f0c9c740451756041d2f8a7111d064 (diff)
downloadGT5-Unofficial-7d9a80de8a1495a6e775af487259216e0097c144.tar.gz
GT5-Unofficial-7d9a80de8a1495a6e775af487259216e0097c144.tar.bz2
GT5-Unofficial-7d9a80de8a1495a6e775af487259216e0097c144.zip
attempt to fix NA in thermos (#31)
* attempt to fix NA in thermos * fix colen's oversight
Diffstat (limited to 'src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java')
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java b/src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java
index 22d3d38904..40cd1ef6dd 100644
--- a/src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java
+++ b/src/main/java/goodgenerator/blocks/tileEntity/NeutronActivator.java
@@ -330,7 +330,7 @@ public class NeutronActivator extends GT_MetaTileEntity_MultiblockBase_EM implem
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
boolean anyWorking = false;
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (aBaseMetaTileEntity.isServerSide()) {
for (ItemStack input : getStoredInputs()) {
if (input.isItemEqual(Materials.Graphite.getDust(1)) || input.isItemEqual(Materials.Beryllium.getDust(1))) {
@@ -341,7 +341,7 @@ public class NeutronActivator extends GT_MetaTileEntity_MultiblockBase_EM implem
}
for (NeutronAccelerator tHatch : mNeutronAccelerator) {
- if (tHatch.isRunning && this.getRepairStatus() == this.getIdealStatus()) {
+ if (tHatch.getBaseMetaTileEntity().isActive() && this.getRepairStatus() == this.getIdealStatus()) {
anyWorking = true;
this.eV += Math.max(nextInt(tHatch.getMaxEUConsume(), tHatch.getMaxEUConsume() * 2 + 1) * 10 * Math.pow(0.95, height - 4), 10);
}
@@ -413,7 +413,7 @@ public class NeutronActivator extends GT_MetaTileEntity_MultiblockBase_EM implem
int currentNKEInput = 0;
boolean anyWorking = false;
for (NeutronAccelerator tHatch : mNeutronAccelerator) {
- if (tHatch.isRunning) {
+ if (tHatch.getBaseMetaTileEntity().isActive()) {
currentNKEInput += nextInt(tHatch.getMaxEUConsume(), tHatch.getMaxEUConsume() * 2 + 1) * 10 * Math.pow(0.95, height - 4);
anyWorking = true;
}