Added dart as default starter

This commit is contained in:
Anuken
2020-05-22 14:35:25 -04:00
parent 795bd84d06
commit 12d9479184
21 changed files with 818 additions and 772 deletions

View File

@@ -4,6 +4,7 @@ import arc.*;
import arc.math.*;
import arc.math.geom.*;
import arc.util.*;
import arc.util.ArcAnnotate.*;
import mindustry.annotations.Annotations.*;
import mindustry.content.*;
import mindustry.entities.*;
@@ -174,7 +175,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
controller.update();
//remove units spawned by the core
if(spawnedByCore && !(controller instanceof Playerc)){
if(spawnedByCore && !isPlayer()){
Fx.unitDespawn.at(x, y, 0, this);
remove();
}
@@ -195,6 +196,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
return controller instanceof Playerc;
}
@Nullable
public Playerc getPlayer(){
return isPlayer() ? (Playerc)controller : null;
}