From 1be95c78c2271644dc611e517721ae3fbbbc16e6 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Mon, 3 Oct 2022 20:24:26 -0500 Subject: [PATCH] Moved around code Signed-off-by: LoJoSho --- .../io/github/fisher2911/hmccosmetics/user/Wardrobe.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/io/github/fisher2911/hmccosmetics/user/Wardrobe.java b/common/src/main/java/io/github/fisher2911/hmccosmetics/user/Wardrobe.java index c4cdbfb7..554051e6 100644 --- a/common/src/main/java/io/github/fisher2911/hmccosmetics/user/Wardrobe.java +++ b/common/src/main/java/io/github/fisher2911/hmccosmetics/user/Wardrobe.java @@ -223,14 +223,12 @@ public class Wardrobe extends User { if (this.currentLocation == null) return; final Location location = this.currentLocation.clone(); final int yaw = data.get(); + location.setYaw(yaw); - - location.setYaw(this.getNextYaw(yaw - 30, rotationSpeed)); PacketManager.sendLookPacket(entityId, location, player); - // This rotates the entire body of the NPC - PacketManager.sendRotationPacket(entityId, location, true, player); this.updateOutsideCosmetics(player, location, this.plugin.getSettings()); - + location.setYaw(this.getNextYaw(yaw - 30, rotationSpeed)); + PacketManager.sendRotationPacket(entityId, location, true, player); data.set(this.getNextYaw(yaw, rotationSpeed)); // Need to put the pumpkin here because it will be overriden otherwise ~ LoJoSho