Skip to content

Commit

Permalink
Fix waterline multiblocks not resuming their first recipe on server s…
Browse files Browse the repository at this point in the history
…tart (#3369)
  • Loading branch information
NotAPenguin0 authored Oct 13, 2024
1 parent 6c2b4eb commit 523f7e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,11 @@ public boolean explodesOnComponentBreak(ItemStack aStack) {
}

public void registerLinkedUnit(MTEPurificationUnitBase<?> unit) {
this.mLinkedUnits.add(new LinkedPurificationUnit(unit));
LinkedPurificationUnit link = new LinkedPurificationUnit(unit);
// Make sure to mark it as active if it is running a recipe. This happens on server restart and fixes
// waterline multiblocks not resuming their progress until the next cycle.
link.setActive(unit.mMaxProgresstime > 0);
this.mLinkedUnits.add(link);
}

public void unregisterLinkedUnit(MTEPurificationUnitBase<?> unit) {
Expand Down

0 comments on commit 523f7e9

Please sign in to comment.