Fix minecart spawning facing the wrong pitch

This commit is contained in:
libraryaddict 2014-07-14 13:10:41 +12:00
parent abc0be8bae
commit 67e4631a1a

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