From 73394436040a5a27cb12e1f889e5332e438708e3 Mon Sep 17 00:00:00 2001 From: SITUVNgcd <44901211+SITUVNgcd@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:17:41 +0700 Subject: [PATCH 1/2] Fix TextInput::message on mobile (#9549) This issue from https://github.com/Anuken/Arc/commit/70f345cc75f541de8f592d3167245691cc9a765b --- core/src/mindustry/core/UI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index 3deb6bd4d8..d634e122b5 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -279,7 +279,7 @@ public class UI implements ApplicationListener, Loadable{ public void showTextInput(String titleText, String text, int textLength, String def, boolean numbers, boolean allowEmpty, Cons confirmed, Runnable closed){ if(mobile){ - var description = text; + var description = (text.startsWith("@") ? Core.bundle.get(text.substring(1)) : text); var empty = allowEmpty; Core.input.getTextInput(new TextInput(){{ this.title = (titleText.startsWith("@") ? Core.bundle.get(titleText.substring(1)) : titleText); From d0845b481c9a34c4c3424e18b1adcea78fce86ef Mon Sep 17 00:00:00 2001 From: GlFolker <63218676+GlennFolker@users.noreply.github.com> Date: Wed, 14 Feb 2024 22:04:55 +0700 Subject: [PATCH 2/2] Update Sector.java (#9553) --- core/src/mindustry/type/Sector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/Sector.java b/core/src/mindustry/type/Sector.java index 921802e389..304a73452a 100644 --- a/core/src/mindustry/type/Sector.java +++ b/core/src/mindustry/type/Sector.java @@ -236,7 +236,7 @@ public class Sector{ /** Projects this sector onto a 4-corner square for use in map gen. * Allocates a new object. Do not call in the main loop. */ - private SectorRect makeRect(){ + protected SectorRect makeRect(){ Vec3[] corners = new Vec3[tile.corners.length]; for(int i = 0; i < corners.length; i++){ corners[i] = tile.corners[i].v.cpy().setLength(planet.radius);