mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fixed #10540
This commit is contained in:
parent
b545e0296f
commit
1911fced21
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ public class UnitFactory extends UnitBlock{
|
|||
if(build.currentPlan == i) return;
|
||||
build.currentPlan = i < 0 || i >= plans.size ? -1 : i;
|
||||
build.progress = 0;
|
||||
if(build.command != null && !build.unit().commands.contains(build.command)){
|
||||
if(build.command != null && (build.unit() == null || !build.unit().commands.contains(build.command))){
|
||||
build.command = null;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue