Skip to content

Commit fb52e54

Browse files
committed
Hardcode chest loot title string to prevent overflow in some languages (closes xpple#133)
1 parent f8cbc40 commit fb52e54

4 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/dev/xpple/seedmapper/seedmap/ChestLootWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void render(GuiGraphicsExtractor guiGraphicsExtractor, int mouseX, int mo
6868

6969
ChestLootData chestData = this.chestDataList.get(this.chestIndex);
7070
String structure = Cubiomes.struct2str(chestData.structure()).getString(0);
71-
Component title = Component.translatable("seedMap.chestLoot.title", structure, this.chestIndex + 1, this.chestDataList.size());
71+
Component title = Component.literal("%s loot (%d/%d)".formatted(structure, this.chestIndex + 1, this.chestDataList.size()));
7272

7373
int minX = this.x + 8;
7474
int minY = this.y + 6;

src/main/resources/assets/seedmapper/lang/en_us.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"key.minimap": "Seed minimap",
108108

109109
"seedMap.seed": "Seed: %s | %s %s",
110-
"seedMap.chestLoot.title": "%s loot (%s/%s)",
111110
"seedMap.chestLoot.extraInfo.pieceName": "Piece name: %s",
112111
"seedMap.chestLoot.extraInfo.chestPos": "Chest position: %s",
113112
"seedMap.chestLoot.extraInfo.lootTable": "Loot table: %s",

src/main/resources/assets/seedmapper/lang/tt_ru.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
"seedMap.chestLoot.extraInfo.lootTable": "Табыш таблицасы: %s",
105105
"seedMap.chestLoot.extraInfo.pieceName": "Өлеш исеме: %s",
106106
"seedMap.chestLoot.stewEffect": "%s (%s секунд)",
107-
"seedMap.chestLoot.title": "%s табышы (%s/%s)",
108107
"seedMap.coordinatesCopied": "%s (координаталар күчереп алынды!)",
109108
"seedMap.seed": "Орлык: %s | %s %s",
110109
"seedMap.teleportEditBoxX": "X координатасы кертү кыры",

src/main/resources/assets/seedmapper/lang/zh_cn.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"key.seedMap": "种子地图",
9696

9797
"seedMap.seed": "种子:%s | %s %s",
98-
"seedMap.chestLoot.title": "%s 战利品 (%d/%d)",
9998
"seedMap.chestLoot.extraInfo.pieceName": "部件名称:%s",
10099
"seedMap.chestLoot.extraInfo.chestPos": "箱子位置:%s",
101100
"seedMap.chestLoot.extraInfo.lootTable": "战利品表:%s",

0 commit comments

Comments
 (0)