From a8c57851c6b134765a1c734aea0aaf5c08aa6938 Mon Sep 17 00:00:00 2001 From: D1p4k <82884007+D1p4k@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:17:45 +0200 Subject: [PATCH] 1.21 is done :D --- gradle.properties | 6 +++--- nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java | 2 +- src/main/java/dev/louis/nebula/api/spell/SpellType.java | 2 +- .../dev/louis/nebula/manager/spell/NebulaSpellManager.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index ae4b126..892612d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,9 +2,9 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html -minecraft_version=1.20.6 +minecraft_version=1.21 supported_version=>=1.20.5 -yarn_mappings=1.20.6+build.1 +yarn_mappings=1.21+build.2 loader_version=0.15.11 # Mod Properties mod_version=6.0.0 @@ -12,4 +12,4 @@ maven_group=dev.louis archives_base_name=Nebula # Dependencies # check this on https://modmuss50.me/fabric.html -fabric_version=0.98.0+1.20.6 +fabric_version=0.100.1+1.21 diff --git a/nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java b/nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java index 60e779a..6e4fd19 100644 --- a/nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java +++ b/nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java @@ -5,7 +5,7 @@ import net.minecraft.util.Identifier; public class NebuloSpells { - public static final SpellType CLOUD_JUMP = SpellType.register(new Identifier(Nebulo.MOD_ID, "cloud_jump"), SpellType.Builder.create(CloudJumpSpell::new, 2)); + public static final SpellType CLOUD_JUMP = SpellType.register(Identifier.of(Nebulo.MOD_ID, "cloud_jump"), SpellType.Builder.create(CloudJumpSpell::new, 2)); public static void init() { } diff --git a/src/main/java/dev/louis/nebula/api/spell/SpellType.java b/src/main/java/dev/louis/nebula/api/spell/SpellType.java index ef8f4f3..7b594a8 100644 --- a/src/main/java/dev/louis/nebula/api/spell/SpellType.java +++ b/src/main/java/dev/louis/nebula/api/spell/SpellType.java @@ -14,7 +14,7 @@ public class SpellType { public static final RegistryKey>> REGISTRY_KEY = - RegistryKey.ofRegistry(new Identifier(Nebula.MOD_ID, "spell_type")); + RegistryKey.ofRegistry(Identifier.of(Nebula.MOD_ID, "spell_type")); public static final SimpleRegistry> REGISTRY = FabricRegistryBuilder.createSimple(REGISTRY_KEY).attribute(RegistryAttribute.SYNCED).buildAndRegister(); diff --git a/src/main/java/dev/louis/nebula/manager/spell/NebulaSpellManager.java b/src/main/java/dev/louis/nebula/manager/spell/NebulaSpellManager.java index e29e73b..4f49b8c 100644 --- a/src/main/java/dev/louis/nebula/manager/spell/NebulaSpellManager.java +++ b/src/main/java/dev/louis/nebula/manager/spell/NebulaSpellManager.java @@ -176,7 +176,7 @@ public void readNbt(NbtCompound nbt) { if (nbtList == null) return; for (int x = 0; x < nbtList.size(); ++x) { NbtCompound nbtCompound = nbtList.getCompound(x); - Identifier spell = new Identifier(nbtCompound.getString(SPELL_NBT_KEY)); + Identifier spell = Identifier.tryParse(nbtCompound.getString(SPELL_NBT_KEY)); SpellType.get(spell).ifPresent(learnedSpells::add); } }