From c9697491633103a275c5e65de78f5dcab6b0c36a Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 8 Jun 2022 09:43:42 -0400 Subject: [PATCH] Fixed #6898 --- core/assets/bundles/bundle.properties | 2 +- core/src/mindustry/editor/WaveInfoDialog.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 6c2c48e5ce..861d13670f 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -324,7 +324,7 @@ quit.confirm = Are you sure you want to quit? loading = [accent]Loading... downloading = [accent]Downloading... saving = [accent]Saving... -respawn = [accent][[{0}][] to respawn in core +respawn = [accent][[{0}][] to respawn cancelbuilding = [accent][[{0}][] to clear plan selectschematic = [accent][[{0}][] to select+copy pausebuilding = [accent][[{0}][] to pause building diff --git a/core/src/mindustry/editor/WaveInfoDialog.java b/core/src/mindustry/editor/WaveInfoDialog.java index 26699b5d4f..031a8953ef 100644 --- a/core/src/mindustry/editor/WaveInfoDialog.java +++ b/core/src/mindustry/editor/WaveInfoDialog.java @@ -361,13 +361,13 @@ public class WaveInfoDialog extends BaseDialog{ } } - p.button("@waves.spawn.all", Styles.flatTogglet, () -> { - group.spawn = -1; - dialog.hide(); - }).size(110f, 45f).checked(-1 == group.spawn); - if(spawner.getSpawns().isEmpty()){ p.add("@waves.spawn.none"); + }else{ + p.button("@waves.spawn.all", Styles.flatTogglet, () -> { + group.spawn = -1; + dialog.hide(); + }).size(110f, 45f).checked(-1 == group.spawn); } }); dialog.setFillParent(false);