From 9a95754007078a50c24b5e9e03613ca44462eb52 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 1 Aug 2022 20:56:37 -0400 Subject: [PATCH] Fixed incorrect scaling with command layout --- core/src/mindustry/ui/fragments/PlacementFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ui/fragments/PlacementFragment.java b/core/src/mindustry/ui/fragments/PlacementFragment.java index edceb4b96d..b5a3c169ee 100644 --- a/core/src/mindustry/ui/fragments/PlacementFragment.java +++ b/core/src/mindustry/ui/fragments/PlacementFragment.java @@ -412,7 +412,7 @@ public class PlacementFragment{ //hacky, but forces command table to be same width as blocks if(control.input.commandMode){ - commandTable.getCells().peek().width(blockCatTable.getWidth()); + commandTable.getCells().peek().width(blockCatTable.getWidth() / Scl.scl(1f)); } wasCommandMode = control.input.commandMode;