mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-15 03:41:30 +01:00
fix: send entity metadata immediately (#2027)
Co-authored-by: DeidaraMC <DeidaraMC>
This commit is contained in:
parent
40ebd2b67f
commit
e5cb2f7a1d
@ -465,7 +465,7 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
|
||||
public void updateNewViewer(@NotNull Player player) {
|
||||
player.sendPacket(getEntityType().registry().spawnType().getSpawnPacket(this));
|
||||
if (hasVelocity()) player.sendPacket(getVelocityPacket());
|
||||
player.sendPacket(new LazyPacket(this::getMetadataPacket));
|
||||
player.sendPacket(getMetadataPacket());
|
||||
// Passengers
|
||||
final Set<Entity> passengers = this.passengers;
|
||||
if (!passengers.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user