mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-10 07:47:25 +07:00
Fixed #5885
This commit is contained in:
@ -39,12 +39,15 @@ public class UnitFactory extends UnitBlock{
|
|||||||
rotate = true;
|
rotate = true;
|
||||||
|
|
||||||
config(Integer.class, (UnitFactoryBuild tile, Integer i) -> {
|
config(Integer.class, (UnitFactoryBuild tile, Integer i) -> {
|
||||||
|
if(tile.currentPlan == i) return;
|
||||||
tile.currentPlan = i < 0 || i >= plans.size ? -1 : i;
|
tile.currentPlan = i < 0 || i >= plans.size ? -1 : i;
|
||||||
tile.progress = 0;
|
tile.progress = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
config(UnitType.class, (UnitFactoryBuild tile, UnitType val) -> {
|
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;
|
tile.progress = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,4 +11,4 @@ android.useAndroidX=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
http.socketTimeout=80000
|
http.socketTimeout=80000
|
||||||
http.connectionTimeout=80000
|
http.connectionTimeout=80000
|
||||||
archash=83ba08c732333d88d7f46142721cec043d6bbeee
|
archash=dd43cacc5c5a68bd7160234a97b4fd48d9a816d7
|
||||||
|
Reference in New Issue
Block a user