9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00

change split limit from '1' to '2'

This commit is contained in:
CrazyDev22
2023-04-10 13:05:09 +02:00
parent 6ebcd02ae6
commit 62010116d7

View File

@@ -7,7 +7,7 @@ public record Identifier(String namespace, String key) {
private static final String DEFAULT_NAMESPACE = "minecraft";
public static Identifier fromString(String id) {
String[] strings = id.split(":", 1);
String[] strings = id.split(":", 2);
if(strings.length == 1) {
return new Identifier(DEFAULT_NAMESPACE, strings[0]);
} else {