This commit is contained in:
libraryaddict 2014-09-05 05:23:17 +12:00
parent 4853015bd8
commit c7607abdc2

View File

@ -1302,9 +1302,10 @@ public class PacketsManager {
StructureModifier<Byte> bytes = packets[0].getBytes();
boolean tele = sentPacket.getType() == PacketType.Play.Server.ENTITY_TELEPORT;
byte yawValue = (Byte) bytes.read(tele ? 0 : 3);
bytes.write(3, getYaw(disguise.getType(), entity.getType(), yawValue));
bytes.write(tele ? 0 : 3, getYaw(disguise.getType(), entity.getType(), yawValue));
byte pitchValue = (Byte) bytes.read(tele ? 1 : 4);
bytes.write(4, getPitch(disguise.getType(), DisguiseType.getType(entity.getType()), pitchValue));
bytes.write(tele ? 1 : 4,
getPitch(disguise.getType(), DisguiseType.getType(entity.getType()), pitchValue));
if (tele && disguise.getType() == DisguiseType.ITEM_FRAME) {
StructureModifier<Integer> ints = packets[0].getIntegers();
Location loc = entity.getLocation();