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:
steve 2025-02-18 12:09:27 +01:00
parent b8df40f6c9
commit 400783e5cc
No known key found for this signature in database
GPG key ID: 0F9283F0F2E9E304

View file

@ -195,6 +195,7 @@ public class WrapperEntity implements Tickable {
}
sendPacket(uuid, createSpawnPacket());
sendPacket(uuid, entityMeta.createPacket());
sendPacket(uuid, createPassengerPacket());
}
if (EntityLib.getApi().getSettings().isDebugMode()) {
EntityLib.getPlatform().getLogger().info("Added viewer " + uuid + " to entity " + entityId);