diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 624dfc3f0a..07e1c45e6d 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -38,12 +38,19 @@ public class UnitTypes implements ContentList{ @Override public void load(){ - block = new UnitType("block"){{ - speed = 0f; - hitsize = 0f; - health = 1; - rotateSpeed = 360f; - }}; + block = new UnitType("block"){ + { + speed = 0f; + hitsize = 0f; + health = 1; + rotateSpeed = 360f; + } + + @Override + public boolean isHidden(){ + return true; + } + }; dagger = new UnitType("dagger"){{ speed = 0.5f; diff --git a/core/src/mindustry/editor/WaveInfoDialog.java b/core/src/mindustry/editor/WaveInfoDialog.java index a677f7d074..9153a738d4 100644 --- a/core/src/mindustry/editor/WaveInfoDialog.java +++ b/core/src/mindustry/editor/WaveInfoDialog.java @@ -240,6 +240,7 @@ public class WaveInfoDialog extends FloatingDialog{ dialog.cont.pane(p -> { int i = 0; for(UnitType type : content.units()){ + if(type.isHidden()) continue; p.button(t -> { t.left(); t.image(type.icon(mindustry.ui.Cicon.medium)).size(40f).padRight(2f);