diff --git a/core/src/mindustry/entities/comp/UnitComp.java b/core/src/mindustry/entities/comp/UnitComp.java index 062cc810d6..e351af910b 100644 --- a/core/src/mindustry/entities/comp/UnitComp.java +++ b/core/src/mindustry/entities/comp/UnitComp.java @@ -609,6 +609,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I a.death(self()); } + type.killed(self()); + remove(); } diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index bfae830600..881d359176 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -470,6 +470,8 @@ public class UnitType extends UnlockableContent{ } + public void killed(Unit unit){} + public void landed(Unit unit){} public void display(Unit unit, Table table){ diff --git a/core/src/mindustry/world/blocks/production/GenericCrafter.java b/core/src/mindustry/world/blocks/production/GenericCrafter.java index d5f5a870e8..4a9b65f9b8 100644 --- a/core/src/mindustry/world/blocks/production/GenericCrafter.java +++ b/core/src/mindustry/world/blocks/production/GenericCrafter.java @@ -35,7 +35,6 @@ public class GenericCrafter extends Block{ public boolean dumpExtraLiquid = true; public boolean ignoreLiquidFullness = false; - //TODO should be seconds? public float craftTime = 80; public Effect craftEffect = Fx.none; public Effect updateEffect = Fx.none;