diff --git a/README.md b/README.md index 8d35557..04b75e9 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ which integrates with Multiverse-Core and WildRegeneration for cleanup. It can e gg.auroramc Aurora - 1.5.0 + 1.5.3 provided ``` @@ -53,7 +53,7 @@ repositories { } dependencies { - compileOnly 'gg.auroramc:Aurora:1.5.0' + compileOnly 'gg.auroramc:Aurora:1.5.3' } ``` @@ -64,6 +64,6 @@ repositories { } dependencies { - compileOnly("gg.auroramc:Aurora:1.5.0") + compileOnly("gg.auroramc:Aurora:1.5.3") } ``` \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 17dc4c2..a48a8e3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { } group = "gg.auroramc" -version = "1.5.2" +version = "1.5.3" java { sourceCompatibility = JavaVersion.VERSION_21 diff --git a/src/main/java/gg/auroramc/aurora/api/item/TypeId.java b/src/main/java/gg/auroramc/aurora/api/item/TypeId.java index a52dee9..9cc34f6 100644 --- a/src/main/java/gg/auroramc/aurora/api/item/TypeId.java +++ b/src/main/java/gg/auroramc/aurora/api/item/TypeId.java @@ -3,6 +3,8 @@ import org.bukkit.Material; import org.bukkit.entity.EntityType; +import java.util.Arrays; + public record TypeId(String namespace, String id) { @Override public String toString() { @@ -23,7 +25,8 @@ public static TypeId fromDefault(String string) { if (split.length == 1) { return new TypeId("minecraft", split[0].toLowerCase()); } else if (split.length != 2) { - throw new IllegalArgumentException("Invalid TypeId: " + string); + String rest = String.join(":", Arrays.copyOfRange(split, 1, split.length)); + return new TypeId(split[0], rest); } else { return new TypeId(split[0], split[1]); }