This commit is contained in:
Anuken
2020-02-07 23:12:39 -05:00
parent c8455ddbc8
commit 659bfea8cf
8 changed files with 15 additions and 78 deletions

View File

@@ -11,7 +11,7 @@ class AllEntities{
@EntityDef(value = {Tilec.class}, isFinal = false)
class TileDef{}
@EntityDef(value = {Effectc.class}, pooled = true)
@EntityDef(value = {Effectc.class, Childc.class}, pooled = true)
class EffectDef{}
@EntityDef({Decalc.class})

View File

@@ -8,8 +8,8 @@ import mindustry.gen.*;
abstract class ChildComp implements Posc{
transient float x, y;
private @Nullable Posc parent;
private float offsetX, offsetY;
@Nullable Posc parent;
float offsetX, offsetY;
@Override
public void add(){

View File

@@ -78,11 +78,6 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc{
}
public Unitc unit(){
if(dead()){
//TODO remove
Log.err("WARNING: DEAD PLAYER UNIT ACCESSED");
new RuntimeException().printStackTrace();
}
return unit;
}