fix: resend entity passengers when new viewer is added
When adding a new viewer to an already spawned entity it was missing the passengers information. This is especially noticeable when updating the texture properties of a WrapperPlayer (due to the destroy and respawn of the entity).
This commit is contained in:
parent
b8df40f6c9
commit
400783e5cc
1 changed files with 1 additions and 0 deletions
|
@ -195,6 +195,7 @@ public class WrapperEntity implements Tickable {
|
||||||
}
|
}
|
||||||
sendPacket(uuid, createSpawnPacket());
|
sendPacket(uuid, createSpawnPacket());
|
||||||
sendPacket(uuid, entityMeta.createPacket());
|
sendPacket(uuid, entityMeta.createPacket());
|
||||||
|
sendPacket(uuid, createPassengerPacket());
|
||||||
}
|
}
|
||||||
if (EntityLib.getApi().getSettings().isDebugMode()) {
|
if (EntityLib.getApi().getSettings().isDebugMode()) {
|
||||||
EntityLib.getPlatform().getLogger().info("Added viewer " + uuid + " to entity " + entityId);
|
EntityLib.getPlatform().getLogger().info("Added viewer " + uuid + " to entity " + entityId);
|
||||||
|
|
Loading…
Reference in a new issue