From c6b756d12143562a50ce7b34397c9d4aa15e17aa Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 9 May 2020 10:59:10 -0400 Subject: [PATCH] Fix world unload toLowercase - Fixes #3326 --- Spigot-Server-Patches/Fix-CraftServer.unloadWorld-Leak.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Fix-CraftServer.unloadWorld-Leak.patch b/Spigot-Server-Patches/Fix-CraftServer.unloadWorld-Leak.patch index cb097bf3ee..4ef6e288ec 100644 --- a/Spigot-Server-Patches/Fix-CraftServer.unloadWorld-Leak.patch +++ b/Spigot-Server-Patches/Fix-CraftServer.unloadWorld-Leak.patch @@ -115,7 +115,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - console.worldServer.remove(handle.getWorldProvider().getDimensionManager()); + // Paper start + DimensionManager dimensionManager = handle.getWorldProvider().getDimensionManager(); -+ DimensionManager.unregister(world.getName(), dimensionManager); ++ DimensionManager.unregister(world.getName().toLowerCase(java.util.Locale.ENGLISH), dimensionManager); + console.worldServer.remove(dimensionManager); + // Paper end return true;