@@ -165,8 +165,8 @@ public void serverTick(Level level, BlockPos blockPos, BlockState blockState) {
165
165
}
166
166
}
167
167
168
- this .doHeatTick ();
169
- this .doEUTick ();
168
+ this .doHeatTick (isActive );
169
+ this .doEUTick (isActive );
170
170
171
171
if (wasActive != isActive ) {
172
172
this .setMachineState (isActive ? MachineState .ACTIVE : MachineState .IDLE );
@@ -264,7 +264,7 @@ public void resetHullHeatCache() {
264
264
this .hullHeatCache = null ;
265
265
}
266
266
267
- private void doHeatTick () {
267
+ private void doHeatTick (boolean isActive ) {
268
268
this .addedHeat = 0 ;
269
269
int oldStoredHeat = storedHeat ;
270
270
@@ -276,7 +276,7 @@ private void doHeatTick() {
276
276
for (int col = 0 ; col < COL_COUNT ; col ++) {
277
277
var component = getComponent (col , row );
278
278
if (component != null ) {
279
- component .onHeatTick ();
279
+ component .onHeatTick (isActive );
280
280
}
281
281
}
282
282
}
@@ -293,14 +293,14 @@ private void doHeatTick() {
293
293
doHeatDamage ();
294
294
}
295
295
296
- private void doEUTick () {
296
+ private void doEUTick (boolean isActive ) {
297
297
this .addedEU = 0 ;
298
298
299
299
for (int row = 0 ; row < ROW_COUNT ; row ++) {
300
300
for (int col = 0 ; col < COL_COUNT ; col ++) {
301
301
var component = getComponent (col , row );
302
302
if (component != null ) {
303
- component .onEnergyTick ();
303
+ component .onEnergyTick (isActive );
304
304
}
305
305
}
306
306
}
0 commit comments