diff --git a/core/src/io/anuke/mindustry/core/Control.java b/core/src/io/anuke/mindustry/core/Control.java index ebcb9d1b56..92e7c96134 100644 --- a/core/src/io/anuke/mindustry/core/Control.java +++ b/core/src/io/anuke/mindustry/core/Control.java @@ -175,6 +175,12 @@ public class Control implements ApplicationListener, Loadable{ Effects.shake(5f, 5f, core); }); }); + + Events.on(UnitDestroyEvent.class, e -> { + if(e.unit instanceof BaseUnit){ + data.unlockContent(((BaseUnit)e.unit).getType()); + } + }); } @Override