Bugfixes
This commit is contained in:
@@ -94,10 +94,6 @@ abstract class BuilderComp implements Unitc, DrawLayerFlyingc{
|
||||
//otherwise, update it.
|
||||
BuildEntity entity = tile.ent();
|
||||
|
||||
if(entity == null){
|
||||
return;
|
||||
}
|
||||
|
||||
if(dst(tile) <= finalPlaceDst){
|
||||
rotation = Mathf.slerpDelta(rotation, angleTo(entity), 0.4f);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import static mindustry.Vars.state;
|
||||
abstract class TeamComp implements Posc{
|
||||
@Import float x, y;
|
||||
|
||||
Team team = Team.sharded;
|
||||
Team team = Team.derelict;
|
||||
|
||||
public @Nullable
|
||||
Tilec closestCore(){
|
||||
|
||||
@@ -61,9 +61,10 @@ abstract class TileComp implements Posc, Teamc, Healthc, Tilec, Timerc{
|
||||
private transient float sleepTime;
|
||||
|
||||
/** Sets this tile entity data to this and adds it if necessary. */
|
||||
public Tilec init(Tile tile, boolean shouldAdd){
|
||||
public Tilec init(Tile tile, Team team, boolean shouldAdd){
|
||||
this.tile = tile;
|
||||
this.block = tile.block();
|
||||
this.team = team;
|
||||
|
||||
set(tile.drawx(), tile.drawy());
|
||||
if(block.activeSound != Sounds.none){
|
||||
|
||||
Reference in New Issue
Block a user