Fixes slip-up by forgetting to display animation to all nearby players
This commit is contained in:
parent
966eed910a
commit
3b81d2f57c
@ -101,7 +101,10 @@ public class BlacksmithListener implements Listener {
|
|||||||
PacketContainer packet = manager.createPacket(PacketType.Play.Server.ANIMATION);
|
PacketContainer packet = manager.createPacket(PacketType.Play.Server.ANIMATION);
|
||||||
packet.getIntegers().write(0, event.getNpc().getEntity().getEntityId());
|
packet.getIntegers().write(0, event.getNpc().getEntity().getEntityId());
|
||||||
packet.getIntegers().write(1, 3);
|
packet.getIntegers().write(1, 3);
|
||||||
manager.sendServerPacket(event.getPlayer(), packet);
|
|
||||||
|
for (Entity entity : nearby) {
|
||||||
|
manager.sendServerPacket((Player) entity, packet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user