From 8c0b03b17aaf3e4283fcbed7dd9a956b1e1e5e65 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 14 Sep 2022 07:56:49 -0400 Subject: [PATCH] Fixed wrapping issue --- core/src/mindustry/ui/dialogs/PlanetDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index 414a7a5046..0f8a613e88 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -1123,7 +1123,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{ Sector attacked = planet.sectors.find(s -> s.isAttacked() && s != sector); if(attacked != null && planet.sectors.count(s -> s.isAttacked()) < 2){ BaseDialog dialog = new BaseDialog("@sector.noswitch.title"); - dialog.cont.add(bundle.format("sector.noswitch", attacked.name(), attacked.planet.localizedName)).maxWidth(400f).labelAlign(Align.center).center().wrap(); + dialog.cont.add(bundle.format("sector.noswitch", attacked.name(), attacked.planet.localizedName)).width(400f).labelAlign(Align.center).center().wrap(); dialog.addCloseButton(); dialog.buttons.button("@sector.view", Icon.eyeSmall, () -> { dialog.hide();