diff --git a/changelog.md b/changelog.md index fa78d64..cd81e96 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +------------------------------------------------------ +Version 1.2.1 +------------------------------------------------------ +- Updated to 1.16.2 +- Clarified the error when accessing abilities from a client + ------------------------------------------------------ Version 1.2.0 ------------------------------------------------------ diff --git a/gradle.properties b/gradle.properties index 9b53629..a64e27b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,13 +3,13 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.16-pre7 -yarn_mappings=1.16-pre7+build.1 -loader_version=0.8.7+build.201 -fabric_version=0.12.4+build.365-1.16 +minecraft_version=1.16.2 +yarn_mappings=1.16.2+build.6 +loader_version=0.9.1+build.205 +fabric_version=0.17.2+build.396-1.16 # Mod Properties -mod_version = 1.2.0 +mod_version = 1.2.1 maven_group = io.github.ladysnake archives_base_name = Pal diff --git a/src/main/java/io/github/ladysnake/pal/impl/PlayerAbilityView.java b/src/main/java/io/github/ladysnake/pal/impl/PlayerAbilityView.java index 83e1838..5b8fe7c 100644 --- a/src/main/java/io/github/ladysnake/pal/impl/PlayerAbilityView.java +++ b/src/main/java/io/github/ladysnake/pal/impl/PlayerAbilityView.java @@ -43,7 +43,7 @@ public interface PlayerAbilityView { */ static PlayerAbilityView of(PlayerEntity player) { if (player.world.isClient) { - throw new IllegalStateException("Player abilities must be accessed from the logical server !"); + throw new IllegalStateException("Player abilities must be accessed from the logical server (check !world.isClient)"); } return (PlayerAbilityView) player; } diff --git a/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerEntityMixin.java b/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerEntityMixin.java index e920d4a..7d8cb11 100644 --- a/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerEntityMixin.java +++ b/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerEntityMixin.java @@ -51,8 +51,8 @@ public abstract class ServerPlayerEntityMixin extends PlayerEntity implements Pl @Unique private final Map palAbilities = new LinkedHashMap<>(); - public ServerPlayerEntityMixin(World world, BlockPos pos, GameProfile profile) { - super(world, pos, profile); + public ServerPlayerEntityMixin(World world, BlockPos pos, float yaw, GameProfile profile) { + super(world, pos, yaw, profile); } @Inject(method = "", at = @At("RETURN")) diff --git a/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerInteractionManagerMixin.java b/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerInteractionManagerMixin.java index 457cc68..ff33de7 100644 --- a/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerInteractionManagerMixin.java +++ b/src/main/java/io/github/ladysnake/pal/impl/mixin/ServerPlayerInteractionManagerMixin.java @@ -42,7 +42,7 @@ public abstract class ServerPlayerInteractionManagerMixin { method = "setGameMode", at = @At( value = "INVOKE", - target = "Lnet/minecraft/world/GameMode;setAbilitites(Lnet/minecraft/entity/player/PlayerAbilities;)V" + target = "Lnet/minecraft/world/GameMode;setAbilities(Lnet/minecraft/entity/player/PlayerAbilities;)V" )) private void saveFlying(GameMode newMode, GameMode previousMode, CallbackInfo info) { PAL_FLYING.set(player.abilities.flying); @@ -52,7 +52,7 @@ private void saveFlying(GameMode newMode, GameMode previousMode, CallbackInfo in method = "setGameMode", at = @At( value = "INVOKE", - target = "Lnet/minecraft/world/GameMode;setAbilitites(Lnet/minecraft/entity/player/PlayerAbilities;)V", + target = "Lnet/minecraft/world/GameMode;setAbilities(Lnet/minecraft/entity/player/PlayerAbilities;)V", shift = AFTER )) private void keepAbilities(GameMode newMode, GameMode previousMode, CallbackInfo info) {