Skip to content

Commit 0c0e9fe

Browse files
committed
consume qflux every tick instead of on a timer
1 parent 7e51d58 commit 0c0e9fe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/net/neganote/monilabs/common/machine/multiblock/MicroverseProjectorMachine.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public class MicroverseProjectorMachine extends WorkableElectricMultiblockMachin
7474
@Getter
7575
private int microverseIntegrity;
7676

77-
@Persisted
78-
@Getter
79-
private int timer = 0;
80-
8177
private List<NotifiableItemStackHandler> inputBuses = null;
8278
private List<NotifiableItemStackHandler> outputBuses = null;
8379

@@ -210,7 +206,7 @@ public void microverseTick() {
210206
.toList();
211207
}
212208

213-
if (timer == 0 && microverse.isRepairable) {
209+
if (microverse.isRepairable) {
214210
var missingHealth = MICROVERSE_MAX_INTEGRITY - microverseIntegrity;
215211
var fluxToFullHeal = missingHealth / FLUX_REPAIR_AMOUNT;
216212
var fluxAvailable = ParallelLogic.getMaxByInput(this, quantumFluxRecipe, Integer.MAX_VALUE,
@@ -240,7 +236,6 @@ public void microverseTick() {
240236
}
241237
}
242238
}
243-
timer = (timer + 1) % 6;
244239
if (microverse.decayRate != 0) {
245240
int decayRate = microverse.decayRate;
246241
microverseIntegrity -= decayRate;

0 commit comments

Comments
 (0)