From fb3b69a401f6594f81e0273e16a4ca808ae4bbfe Mon Sep 17 00:00:00 2001 From: Lucky Clover <55009845+Jackson11500@users.noreply.github.com> Date: Sat, 2 Jul 2022 22:17:43 +0800 Subject: [PATCH] fix added assembler module doesnt reset progress (#7108) --- core/src/mindustry/world/blocks/units/UnitAssembler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/units/UnitAssembler.java b/core/src/mindustry/world/blocks/units/UnitAssembler.java index 569e276984..52d1de976b 100644 --- a/core/src/mindustry/world/blocks/units/UnitAssembler.java +++ b/core/src/mindustry/world/blocks/units/UnitAssembler.java @@ -275,7 +275,10 @@ public class UnitAssembler extends PayloadBlock{ break; } } - currentTier = max; + if(currentTier != max){ + progress=0; + currentTier = max; + } } public UnitType unit(){