From 523f7e9c8ba198222b96b31883f9f2a2a39938b7 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Sun, 13 Oct 2024 22:02:17 +0200 Subject: Fix waterline multiblocks not resuming their first recipe on server start (#3369) --- .../machines/multi/purification/MTEPurificationPlant.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java index 7b93e4ce07..21351e0cc5 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/purification/MTEPurificationPlant.java @@ -495,7 +495,11 @@ public class MTEPurificationPlant extends MTEExtendedPowerMultiBlockBase 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) { -- cgit