From adb548fbfca1c6fc0d3d7d5633fa78502e291eae Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 3 Nov 2024 11:26:30 -0500 Subject: [PATCH] Fixed #10311 --- core/src/mindustry/core/UI.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index 085f97d6d8..1eb38240d1 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -628,6 +628,7 @@ public class UI implements ApplicationListener, Loadable{ int option = 0; for(var optionsRow : options){ + if(optionsRow.length == 0) continue; Table buttonRow = table.row().table().get().row(); int fullWidth = 400 - (optionsRow.length - 1) * 8; // adjust to count padding as well int width = fullWidth / optionsRow.length;