Fix paintings not appearing right away
This commit is contained in:
parent
a0f96778e9
commit
3f6b6aea19
@ -208,9 +208,9 @@ public class PacketsManager {
|
|||||||
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
|
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
|
||||||
mods = spawnPackets[1].getModifier();
|
mods = spawnPackets[1].getModifier();
|
||||||
mods.write(0, disguisedEntity.getEntityId());
|
mods.write(0, disguisedEntity.getEntityId());
|
||||||
mods.write(1, (int) Math.floor(entitySize.a(loc.getX()) * 32D));
|
mods.write(1, (int) Math.floor(loc.getX() * 32D));
|
||||||
mods.write(2, (int) Math.floor(loc.getY() * 32D));
|
mods.write(2, (int) Math.floor(loc.getY() * 32D));
|
||||||
mods.write(3, (int) Math.floor(entitySize.a(loc.getZ()) * 32D));
|
mods.write(3, (int) Math.floor(loc.getZ() * 32D));
|
||||||
mods.write(4, yaw);
|
mods.write(4, yaw);
|
||||||
mods.write(5, (byte) (int) (loc.getPitch() * 256.0F / 360.0F));
|
mods.write(5, (byte) (int) (loc.getPitch() * 256.0F / 360.0F));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user