This commit is contained in:
Anuken 2025-04-04 12:08:34 -04:00
parent b545e0296f
commit 1911fced21

View file

@ -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;
}
});