From 4375222a6787119a01832cfac21122b51f5b575b Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Mon, 9 Jan 2023 00:44:00 -0600 Subject: [PATCH] PartConfig: -Angle fix for setRotation functions. --- src/api | 2 +- src/main/java/noppes/npcs/roles/JobPuppet.java | 4 ++-- src/main/java/noppes/npcs/scripted/roles/ScriptJobPuppet.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api b/src/api index bdde1f703..75ef3578f 160000 --- a/src/api +++ b/src/api @@ -1 +1 @@ -Subproject commit bdde1f7036c77427893379b9ba51cb624b05428d +Subproject commit 75ef3578f62f894217e001b7259291b6a956834d diff --git a/src/main/java/noppes/npcs/roles/JobPuppet.java b/src/main/java/noppes/npcs/roles/JobPuppet.java index e40662654..8fe31e06c 100644 --- a/src/main/java/noppes/npcs/roles/JobPuppet.java +++ b/src/main/java/noppes/npcs/roles/JobPuppet.java @@ -190,14 +190,14 @@ public class JobPuppet extends JobInterface{ float f = rotation / 360f - 0.5f; if(this.getRotationY() != f && parent instanceof JobPuppet) ((JobPuppet)parent).npc.script.clientNeedsUpdate = true; - this.rotationY = rotation; + this.rotationY = f; } public void setRotationZ(float rotation) { float f = rotation / 360f - 0.5f; if(this.getRotationZ() != f && parent instanceof JobPuppet) ((JobPuppet)parent).npc.script.clientNeedsUpdate = true; - this.rotationZ = rotation; + this.rotationZ = f; } public float getRotationX() { diff --git a/src/main/java/noppes/npcs/scripted/roles/ScriptJobPuppet.java b/src/main/java/noppes/npcs/scripted/roles/ScriptJobPuppet.java index b93d3bd49..9eb4c8420 100644 --- a/src/main/java/noppes/npcs/scripted/roles/ScriptJobPuppet.java +++ b/src/main/java/noppes/npcs/scripted/roles/ScriptJobPuppet.java @@ -45,7 +45,7 @@ public class ScriptJobPuppet extends ScriptJobInterface implements IJobPuppet { public void allInterpolated(boolean interpolate) { for (int i = 0; i < 6; i++) { - this.getPart(i).setAnimated(interpolate); + this.getPart(i).setInterpolated(interpolate); } }