mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed #3052
This commit is contained in:
parent
ee8f18796e
commit
1cbcb742e9
@ -207,7 +207,8 @@ abstract class BuilderComp implements Unitc{
|
||||
BuildPlan plan = buildPlan();
|
||||
Tile tile = world.tile(plan.x, plan.y);
|
||||
|
||||
if((!within(tile, buildingRange) && !state.isEditor()) || tile == null){
|
||||
|
||||
if(tile == null || (!within(tile, buildingRange) && !state.isEditor())){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ abstract class CommanderComp implements Entityc, Posc{
|
||||
|
||||
public void update(){
|
||||
if(formation != null){
|
||||
formation.anchor.set(x, y, /*rotation*/ 0); //TODO rotation set to 0 because rotating is pointless
|
||||
formation.anchor.set(x, y, 0);
|
||||
formation.updateSlots();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user