Skip to content

Commit

Permalink
Merge branch '1.21' into 1.21-neoforge2
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 10, 2024
2 parents 37ae3c7 + e39db0c commit 9bd95d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
------------------------------------------------------
Version 1.10.0
------------------------------------------------------
- Updated to MC 1.21 (thanks peterv5!)

------------------------------------------------------
Version 1.9.0
------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/github/ladysnake/pal/Pal.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static void revokeAbility(PlayerEntity player, PlayerAbility ability, Abi
* @throws NullPointerException if any of the arguments is null
*/
public static AbilitySource getAbilitySource(String namespace, String name) {
return getAbilitySource(new Identifier(namespace, name));
return getAbilitySource(Identifier.of(namespace, name));
}

/**
Expand Down Expand Up @@ -168,7 +168,7 @@ public static AbilitySource getAbilitySource(Identifier abilitySourceId, int pri
* @see #registerAbility(String, String, BiFunction)
*/
public static PlayerAbility registerAbility(String namespace, String path, BiFunction<PlayerAbility, PlayerEntity, AbilityTracker> factory) {
return registerAbility(new Identifier(namespace, path), factory);
return registerAbility(Identifier.of(namespace, path), factory);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/testmod/java/io/github/ladysnake/paltest/PalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public final class PalTest implements ModInitializer {

public static Identifier id(String path) {
return new Identifier("paltest", path);
return Identifier.of("paltest", path);
}

@Override
Expand Down

0 comments on commit 9bd95d2

Please sign in to comment.