diff --git a/core/src/mindustry/world/blocks/units/UnitFactory.java b/core/src/mindustry/world/blocks/units/UnitFactory.java index ab7fa7024b..948b85f0ff 100644 --- a/core/src/mindustry/world/blocks/units/UnitFactory.java +++ b/core/src/mindustry/world/blocks/units/UnitFactory.java @@ -39,12 +39,15 @@ public class UnitFactory extends UnitBlock{ rotate = true; config(Integer.class, (UnitFactoryBuild tile, Integer i) -> { + if(tile.currentPlan == i) return; tile.currentPlan = i < 0 || i >= plans.size ? -1 : i; tile.progress = 0; }); config(UnitType.class, (UnitFactoryBuild tile, UnitType val) -> { - tile.currentPlan = plans.indexOf(p -> p.unit == val); + int next = plans.indexOf(p -> p.unit == val); + if(tile.currentPlan == next) return; + tile.currentPlan = next; tile.progress = 0; }); diff --git a/gradle.properties b/gradle.properties index d6205820f2..09cc4bfc63 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,4 +11,4 @@ android.useAndroidX=true #used for slow jitpack builds; TODO see if this actually works http.socketTimeout=80000 http.connectionTimeout=80000 -archash=83ba08c732333d88d7f46142721cec043d6bbeee +archash=dd43cacc5c5a68bd7160234a97b4fd48d9a816d7