From 400783e5cc4d1e8b686ec374181c1ebbeda3faa4 Mon Sep 17 00:00:00 2001 From: steve <50219120+steveb05@users.noreply.github.com> Date: Tue, 18 Feb 2025 12:09:27 +0100 Subject: [PATCH] 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). --- api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java index 27a50cf..c4610dd 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java @@ -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);