From 217b1ae8a4d5b3bbb38b43b9a795b381fd034c3a Mon Sep 17 00:00:00 2001 From: absolute idiot <174307533+churginator@users.noreply.github.com> Date: Sat, 27 Jun 2026 00:42:44 -0400 Subject: [PATCH] oh great heavens --- .../machine/TileEntityPWRController.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hbm/tileentity/machine/TileEntityPWRController.java b/src/main/java/com/hbm/tileentity/machine/TileEntityPWRController.java index 2e6f1bc82..4ecf97689 100644 --- a/src/main/java/com/hbm/tileentity/machine/TileEntityPWRController.java +++ b/src/main/java/com/hbm/tileentity/machine/TileEntityPWRController.java @@ -216,6 +216,12 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG if(this.rodTarget > this.rodLevel) this.rodLevel++; if(this.rodTarget < this.rodLevel) this.rodLevel--; + double multiplier = 1D; + + if(tanks[0].getTankType().hasTrait(FT_PWRModerator.class)) { + multiplier = tanks[0].getTankType().getTrait(FT_PWRModerator.class).getMultiplier(); + } + int newFlux = this.sourceCount * 20; if(typeLoaded != -1 && amountLoaded > 0) { @@ -227,6 +233,10 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG double totalOutput = outputPerRod * amountLoaded * usedRods; double totalHeatOutput = totalOutput * fuel.heatEmission; + if(tanks[0].getFill() > 0) { + totalHeatOutput *= multiplier; + } + this.coreHeat += totalHeatOutput; newFlux += totalOutput; @@ -266,8 +276,8 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG this.flux = newFlux; - if(tanks[0].getTankType().hasTrait(FT_PWRModerator.class) && tanks[0].getFill() > 0) { - this.flux *= tanks[0].getTankType().getTrait(FT_PWRModerator.class).getMultiplier(); + if(tanks[0].getFill() > 0) { + this.flux *= multiplier; } if(this.coreHeat > this.coreHeatCapacity) {