mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
change split limit from '1' to '2'
This commit is contained in:
1 parent
6ebcd02ae6
commit
62010116d7
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user