Don't fetch the datawatcher twice
This commit is contained in:
parent
b04f5faea9
commit
56902b8aff
@ -603,11 +603,11 @@ public class DisguiseUtilities {
|
|||||||
// Send the player a packet with himself being spawned
|
// Send the player a packet with himself being spawned
|
||||||
manager.sendServerPacket(player, manager.createPacketConstructor(PacketType.Play.Server.NAMED_ENTITY_SPAWN, player)
|
manager.sendServerPacket(player, manager.createPacketConstructor(PacketType.Play.Server.NAMED_ENTITY_SPAWN, player)
|
||||||
.createPacket(player));
|
.createPacket(player));
|
||||||
|
WrappedDataWatcher dataWatcher = WrappedDataWatcher.getEntityWatcher(player);
|
||||||
sendSelfPacket(
|
sendSelfPacket(
|
||||||
player,
|
player,
|
||||||
manager.createPacketConstructor(PacketType.Play.Server.ENTITY_METADATA, player.getEntityId(),
|
manager.createPacketConstructor(PacketType.Play.Server.ENTITY_METADATA, player.getEntityId(), dataWatcher,
|
||||||
WrappedDataWatcher.getEntityWatcher(player), true).createPacket(player.getEntityId(),
|
true).createPacket(player.getEntityId(), dataWatcher, true), fakeId);
|
||||||
WrappedDataWatcher.getEntityWatcher(player), true), fakeId);
|
|
||||||
|
|
||||||
boolean isMoving = false;
|
boolean isMoving = false;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user