Skip to content

Commit

Permalink
port to 1.21-pre4
Browse files Browse the repository at this point in the history
Changes the fabric version and also adapts to the new Identifier api.
  • Loading branch information
Peter Svensson committed Jun 11, 2024
1 parent db870b8 commit 99a9e01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ org.gradle.jvmargs=-Xmx4G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
minecraft_version=1.21-pre4
yarn_mappings=1.21-pre4+build.3
loader_version=0.15.11
#Fabric api
fabric_version=0.99.0+1.20.6
fabric_version=0.100.0+1.21

elmendorf_version = 0.12.0
elmendorf_version = 0.13.0

# Mod Properties
mod_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 @@ -103,7 +103,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 @@ -162,7 +162,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 99a9e01

Please sign in to comment.