Skip to content

Commit 6271b54

Browse files
authored
Merge pull request #32 from Patbox/1.21
Update to 1.21.9
2 parents 13a1ae5 + 9ac97cb commit 6271b54

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import net.fabricmc.loom.task.RemapJarTask
22

33
plugins {
4-
id 'fabric-loom' version '1.10-SNAPSHOT'
4+
id 'fabric-loom' version '1.11-SNAPSHOT'
55
id 'io.github.ladysnake.chenille' version '0.14.0'
66
}
77

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ org.gradle.jvmargs=-Xmx4G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/use
6-
minecraft_version=1.21.6
7-
yarn_mappings=1.21.6+build.1
8-
loader_version=0.16.14
6+
minecraft_version=1.21.9-rc1
7+
yarn_mappings=1.21.9-rc1+build.1
8+
loader_version=0.17.2
99
# Fabric API
10-
fabric_version=0.127.0+1.21.6
10+
fabric_version=0.133.13+1.21.9
1111

1212
elmendorf_version = 0.15.0
1313

1414
# Mod Properties
15-
mod_version = 1.14.0
15+
mod_version = 1.15.0
1616
maven_group = io.github.ladysnake
1717
archives_base_name = pal
1818

@@ -22,7 +22,7 @@ display_name = PlayerAbilityLib
2222
license_header = LGPL
2323
gpl_version = 3
2424
curseforge_id = 359522
25-
curseforge_versions = 1.21.6
25+
curseforge_versions = 1.21.9-snapshot
2626
cf_requirements = fabric-api
2727
modrinth_id = DHQA06r4
2828
release_type = release

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/io/github/ladysnake/pal/impl/PlayerAbilityView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public interface PlayerAbilityView {
4242
* @return a view for the player's abilities
4343
*/
4444
static PlayerAbilityView of(PlayerEntity player) {
45-
if (player.getWorld().isClient) {
45+
if (player.getEntityWorld().isClient()) {
4646
throw new IllegalStateException("Player abilities must be accessed from the logical server (check !world.isClient)");
4747
}
4848
return (PlayerAbilityView) player;

src/main/java/io/github/ladysnake/pal/impl/VanillaAbilityTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public void checkConflict() {
7373
}
7474

7575
private static GameMode getGamemode(PlayerEntity player) {
76-
if (player.getWorld().isClient) {
77-
PlayerListEntry playerListEntry = Objects.requireNonNull(MinecraftClient.getInstance().getNetworkHandler()).getPlayerListEntry(player.getGameProfile().getId());
76+
if (player.getEntityWorld().isClient()) {
77+
PlayerListEntry playerListEntry = Objects.requireNonNull(MinecraftClient.getInstance().getNetworkHandler()).getPlayerListEntry(player.getGameProfile().id());
7878
return playerListEntry != null ? playerListEntry.getGameMode() : GameMode.SURVIVAL;
7979
} else {
8080
return ((ServerPlayerEntity) player).interactionManager.getGameMode();

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
}
2828
],
2929
"depends": {
30-
"fabric": "*",
31-
"minecraft": ">=1.19.3"
30+
"fabric-api": "*",
31+
"minecraft": ">=1.21.9-"
3232
},
3333
"custom": {
3434
"modmenu:api": true

src/main/resources/mixins.playerabilitylib.common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"required": true,
33
"package": "io.github.ladysnake.pal.impl.mixin",
4-
"compatibilityLevel": "JAVA_17",
4+
"compatibilityLevel": "JAVA_21",
55
"minVersion": "0.7.11-SNAPSHOT",
66
"mixins": [
77
"ServerPlayerEntityMixin",

src/testmod/java/io/github/ladysnake/paltest/BadFlightItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public BadFlightItem(Settings settings) {
4141

4242
@Override
4343
public ActionResult use(World world, PlayerEntity user, Hand hand) {
44-
if (!world.isClient) {
44+
if (!world.isClient()) {
4545
// Direct ability access, issues abound !
4646
user.getAbilities().allowFlying = !user.getAbilities().allowFlying;
4747
user.getAbilities().flying &= user.getAbilities().allowFlying;

0 commit comments

Comments
 (0)