mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +01:00
Annother attempt to fix broken look
This commit is contained in:
parent
e02e1c9e6b
commit
3808579614
@ -1050,12 +1050,13 @@ public class PacketsManager {
|
|||||||
loc.getBlockY(), loc.getBlockZ()).createPacket(player, 0, loc.getBlockX(), loc.getBlockY(),
|
loc.getBlockY(), loc.getBlockZ()).createPacket(player, 0, loc.getBlockX(), loc.getBlockY(),
|
||||||
loc.getBlockZ()));
|
loc.getBlockZ()));
|
||||||
}
|
}
|
||||||
|
// TODO Fix this cos it doesn't move the disguise?
|
||||||
|
byte yaw = (byte) (loc.getYaw() * 256.0F / 360.0F);
|
||||||
|
byte pitch = (byte) (loc.getPitch() * 256.0F / 360.0F);
|
||||||
manager.sendServerPacket(
|
manager.sendServerPacket(
|
||||||
player,
|
player,
|
||||||
manager.createPacketConstructor(Packets.Server.ENTITY_HEAD_ROTATION, player.getEntityId(),
|
manager.createPacketConstructor(Packets.Server.ENTITY_LOOK, player.getEntityId(), yaw, pitch).createPacket(
|
||||||
(byte) Math.floor(loc.getYaw() * 256.0F / 360.0F)).createPacket(player.getEntityId(),
|
player.getEntityId(), yaw, pitch));
|
||||||
(byte) Math.floor(loc.getYaw() * 256.0F / 360.0F)));
|
|
||||||
|
|
||||||
// Resend any active potion effects
|
// Resend any active potion effects
|
||||||
Iterator iterator = player.getActivePotionEffects().iterator();
|
Iterator iterator = player.getActivePotionEffects().iterator();
|
||||||
|
Loading…
Reference in New Issue
Block a user