From 26cccce9a8d2a05e421999206fce70dc1699e3c7 Mon Sep 17 00:00:00 2001 From: Felipe Paschoal Bergamo <64669985+felipepasc@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:54:38 -0300 Subject: [PATCH] fix(wrapper): refactor spawn packet sending method --- api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 eb65d0c..e3e7041 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java @@ -93,7 +93,7 @@ public class WrapperEntity implements Tickable { if (this instanceof WrapperLivingEntity) { WrapperLivingEntity wrapperLivingEntity = (WrapperLivingEntity) this; - wrapperLivingEntity.createSpawnPackets().forEach(packetWrapper -> sendPacket(uuid, packetWrapper)); + wrapperLivingEntity.createSpawnPackets().forEach(this::sendPacketsToViewers); } this.parent = parent;