9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

Moved around code

Signed-off-by: LoJoSho <contact@lojosho.com>
This commit is contained in:
LoJoSho
2022-10-03 20:24:26 -05:00
parent 2be06e3ad9
commit 1be95c78c2

View File

@@ -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