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); 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);