From 65958b1fdb5c722e9b05e5c90d039d9229352297 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 1 Nov 2026 07:12:13 +0100 Subject: [PATCH] Fix WorldIdentifier --- .../src/de/steamwar/core/WorldIdentifier.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java index fb02eab9..a3c575d1 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java @@ -27,8 +27,7 @@ import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; -import java.nio.charset.StandardCharsets; -import java.util.HexFormat; +import java.util.Locale; @Linked public class WorldIdentifier { @@ -40,7 +39,7 @@ public class WorldIdentifier { } public static void setArena(String map) { - set("arena/" + Core.getVersion() + "/" + HexFormat.of().formatHex(map.getBytes(StandardCharsets.UTF_8))); + set("arena/" + Core.getVersion() + "/" + map.toLowerCase(Locale.ROOT).replaceAll("[^a-z0-9._-]", "")); } public WorldIdentifier() {