From 67e4631a1aae254a910bd32898d576edb0044903 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 14 Jul 2014 13:10:41 +1200 Subject: [PATCH] Fix minecart spawning facing the wrong pitch --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 4cc06d3e..d3c24db6 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -307,6 +307,7 @@ public class PacketsManager { .createPacketConstructor(PacketType.Play.Server.SPAWN_ENTITY, nmsEntity, id, data) .createPacket(nmsEntity, id, data); spawnPackets[0].getModifier().write(2, (int) Math.floor(loc.getY() * 32D)); + spawnPackets[0].getModifier().write(7, pitch); spawnPackets[0].getModifier().write(8, yaw); if (disguise.getType() == DisguiseType.ITEM_FRAME) { if (data % 2 == 0) {