Unified command

This commit is contained in:
Anuken
2020-10-07 16:37:48 -04:00
parent 261c1b1611
commit 773e4c7053
17 changed files with 74 additions and 68 deletions
@@ -208,7 +208,7 @@ abstract class BuilderComp implements Unitc{
BuildPlan plan = buildPlan();
Tile tile = world.tile(plan.x, plan.y);
if(!within(tile, buildingRange) && !state.isEditor()){
if((!within(tile, buildingRange) && !state.isEditor()) || tile == null){
return;
}