diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-02 19:22:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 19:22:19 +0200 |
commit | d9171f7557d00d6d53de8a33bc00bc39c40f32b6 (patch) | |
tree | 48d53d5298b57079650bfd36dd88209bdad7fbc4 | |
parent | a2193642bab3a35a7147fff6cc8d5c6924e1c6dd (diff) | |
download | NotEnoughUpdates-d9171f7557d00d6d53de8a33bc00bc39c40f32b6.tar.gz NotEnoughUpdates-d9171f7557d00d6d53de8a33bc00bc39c40f32b6.tar.bz2 NotEnoughUpdates-d9171f7557d00d6d53de8a33bc00bc39c40f32b6.zip |
meta: Fix §f in item names (#1145)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java b/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java index 041843ae..b2db6598 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/itemeditor/NEUItemEditor.java @@ -117,6 +117,9 @@ public class NEUItemEditor extends GuiScreen { options.add(new GuiElementText("Display name: ", Color.WHITE.getRGB())); String displayName = item.has("displayname") ? item.get("displayname").getAsString() : ""; + if (displayName.startsWith("§f§f")) { + displayName = displayName.substring(4); + } this.displayName = addTextFieldWithSupplier(displayName, COLOUR); options.add(new GuiElementText("Lore: ", Color.WHITE.getRGB())); |