mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-03 16:36:00 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fe40f12d2e
@ -7,7 +7,7 @@ public record Identifier(String namespace, String key) {
|
|||||||
private static final String DEFAULT_NAMESPACE = "minecraft";
|
private static final String DEFAULT_NAMESPACE = "minecraft";
|
||||||
|
|
||||||
public static Identifier fromString(String id) {
|
public static Identifier fromString(String id) {
|
||||||
String[] strings = id.split(":", 1);
|
String[] strings = id.split(":", 2);
|
||||||
if(strings.length == 1) {
|
if(strings.length == 1) {
|
||||||
return new Identifier(DEFAULT_NAMESPACE, strings[0]);
|
return new Identifier(DEFAULT_NAMESPACE, strings[0]);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user