From 96d30c5a6996a06925a95cd695e83fce1d727b43 Mon Sep 17 00:00:00 2001 From: D3v1s0m Date: Wed, 8 Nov 2023 18:52:44 +0530 Subject: [PATCH] small npc rotation fix --- .../main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java b/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java index 4eb4df2..7038781 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java @@ -66,7 +66,7 @@ public class V1_8PacketFactory implements PacketFactory { ClientVersion clientVersion = packetEvents.getServerManager().getVersion().toClientVersion(); sendPacket(player, type.getLegacyId(clientVersion) == -1 ? new WrapperPlayServerSpawnLivingEntity(entity.getEntityId(), entity.getUuid(), type, npcLocationToVector(location), - location.getYaw(), location.getPitch(), location.getPitch(), new Vector3d(), Collections.emptyList()) : + location.getYaw(), location.getPitch(), location.getYaw(), new Vector3d(), Collections.emptyList()) : new WrapperPlayServerSpawnEntity(entity.getEntityId(), Optional.of(entity.getUuid()), entity.getType(), npcLocationToVector(location), location.getPitch(), location.getYaw(), location.getYaw(), 0, Optional.empty())); sendAllMetadata(player, entity, properties);