mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Correctly remove escape sequences from parsed names
This commit is contained in:
parent
a259ba716f
commit
4e416f18b6
@ -56,7 +56,7 @@ public class GUIScreenWikiRender extends GuiScreen {
|
|||||||
GL11.glEnable(GL11.GL_LIGHTING);
|
GL11.glEnable(GL11.GL_LIGHTING);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String slotName = preview[index].getDisplayName().replaceAll("[^\\w ().-]+", "");
|
String slotName = preview[index].getDisplayName().replaceAll("§.", "").replaceAll("[^\\w ().-]+", "");
|
||||||
if(!slotName.endsWith(".name")) {
|
if(!slotName.endsWith(".name")) {
|
||||||
saveScreenshot(Minecraft.getMinecraft().mcDataDir, "Slot " + slotName + ".png", 2, 2, 32, 32, 0xFF8B8B8B);
|
saveScreenshot(Minecraft.getMinecraft().mcDataDir, "Slot " + slotName + ".png", 2, 2, 32, 32, 0xFF8B8B8B);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user