From 0ce57502f6399609c7982a757076b1297e3db055 Mon Sep 17 00:00:00 2001 From: Louis_Quepierts Date: Tue, 20 Aug 2024 14:58:31 +0800 Subject: [PATCH] 1.2.3 Fix Code --- .../simpleanimator/core/client/ClientAnimator.java | 7 +------ gradle.properties | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/common/src/main/java/net/quepierts/simpleanimator/core/client/ClientAnimator.java b/common/src/main/java/net/quepierts/simpleanimator/core/client/ClientAnimator.java index 3887611..3b47ff9 100644 --- a/common/src/main/java/net/quepierts/simpleanimator/core/client/ClientAnimator.java +++ b/common/src/main/java/net/quepierts/simpleanimator/core/client/ClientAnimator.java @@ -42,9 +42,6 @@ public class ClientAnimator extends Animator { private boolean processed = false; private boolean shouldUpdate = false; - @Nullable - private Player player; - public ClientAnimator(UUID uuid) { super(uuid); @@ -86,7 +83,7 @@ public void sync(AnimatorDataPacket packet) { @Override public boolean play(ResourceLocation location) { - this.player = Minecraft.getInstance().level.getPlayerByUUID(uuid); + @Nullable Player player = Minecraft.getInstance().level.getPlayerByUUID(uuid); if (this.animation == null) processed = false; @@ -453,8 +450,6 @@ public void reset() { } } - public record Cache_(Vector3f position, Quaternionf rotation) {} - static { BUILTIN_VARIABLES = ObjectOpenHashSet.of( IKBone.HEAD.varName, diff --git a/gradle.properties b/gradle.properties index f3e82ca..9507366 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ enabled_platforms=fabric,neoforge archives_base_name=SimpleAnimator -mod_version=1.2.2 +mod_version=1.2.3 maven_group=net.quepierts architectury_version=${ARCHITECTURY_API_VERSION}