Skip to content

Commit 3d9716e

Browse files
committed
first try to remove harcode space
1 parent 5a3778b commit 3d9716e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/main/java/com/robertx22/age_of_exile/saveclasses/item_classes/GearItemData.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private List<MutableComponent> getFullAffixedName() {
287287
.locName());
288288
}
289289
if (this.uniqueStats == null) {
290-
text.append(" ").append(GetBaseGearType().locName());
290+
text.append(Words.Space.locName()).append(GetBaseGearType().locName());
291291
} else {
292292
text.append(uniqueStats.getUnique(this)
293293
.locName()
@@ -296,7 +296,7 @@ private List<MutableComponent> getFullAffixedName() {
296296

297297
if (affixes.hasSuffix()) {
298298
AffixData suffix = affixes.suf.get(0);
299-
text.append(" ")
299+
text.append(Words.Space.locName())
300300
.append(suffix.BaseAffix()
301301
.locName());
302302
}
@@ -344,9 +344,9 @@ private List<MutableComponent> getTooManyAffixesName() {
344344

345345
txt.append("").append(prefix.locName());
346346

347-
txt.append(" ").append(suffix.locName()).withStyle(format);
347+
txt.append(Words.Space.locName()).append(suffix.locName()).withStyle(format);
348348

349-
txt.append(" ").append(GetBaseGearType().locName());
349+
txt.append(Words.Space.locName()).append(GetBaseGearType().locName());
350350

351351
txt.withStyle(format);
352352

src/main/java/com/robertx22/age_of_exile/uncommon/localization/Words.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ public enum Words implements IAutoLocName {
203203

204204
Unsalvagable("Unsalvageable"),
205205

206-
UsableOn("Usable On");
206+
UsableOn("Usable On"),
207+
208+
Space(" ");
207209

208210
private String localization = "";
209211

0 commit comments

Comments
 (0)