fix(wrapper): refactor spawn packet sending method

This commit is contained in:
Felipe Paschoal Bergamo 2025-06-03 18:54:38 -03:00
parent 1fc7a00ec7
commit 26cccce9a8

View file

@ -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;