Skip to content

Commit

Permalink
1.21 is done :D
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev0Louis committed Jun 15, 2024
1 parent a8a1fe0 commit a8c5785
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
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
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
2 changes: 1 addition & 1 deletion nebulo/src/main/java/dev/louis/nebulo/NebuloSpells.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/louis/nebula/api/spell/SpellType.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public class SpellType<T extends Spell> {
public static final RegistryKey<Registry<SpellType<?>>> REGISTRY_KEY =
RegistryKey.ofRegistry(new Identifier(Nebula.MOD_ID, "spell_type"));
RegistryKey.ofRegistry(Identifier.of(Nebula.MOD_ID, "spell_type"));
public static final SimpleRegistry<SpellType<?>> REGISTRY =
FabricRegistryBuilder.createSimple(REGISTRY_KEY).attribute(RegistryAttribute.SYNCED).buildAndRegister();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a8c5785

Please sign in to comment.