Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port to 1.21-pre4 #24

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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