Fixed locale bug with Registry

This commit is contained in:
Auxilor
2023-04-20 20:32:07 +01:00
parent d96ad10960
commit 58316c2a06
2 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
@@ -199,6 +200,6 @@ public class Registry<T extends Registrable> implements Iterable<T> {
return string.replace(" ", "_")
.replace(".", "_")
.replace("-", "_")
.toLowerCase();
.toLowerCase(Locale.ENGLISH);
}
}