From b1353c69fe39187dc1f4a787273d6ed949efd3ce Mon Sep 17 00:00:00 2001 From: themode Date: Mon, 21 Feb 2022 19:05:11 +0100 Subject: [PATCH] Remove viewEngine mention in updateNewViewer/updateOldViewer --- src/main/java/net/minestom/server/entity/Entity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 852ccb47f..bf3ec3fbf 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -450,7 +450,7 @@ public class Entity implements Viewable, Tickable, Schedulable, TagHandler, Perm final Set passengers = this.passengers; if (!passengers.isEmpty()) { for (Entity passenger : passengers) { - if (passenger != player) passenger.viewEngine.viewableOption.addition.accept(player); + if (passenger != player) passenger.updateNewViewer(player); } player.sendPacket(getPassengersPacket()); } @@ -469,7 +469,7 @@ public class Entity implements Viewable, Tickable, Schedulable, TagHandler, Perm final Set passengers = this.passengers; if (!passengers.isEmpty()) { for (Entity passenger : passengers) { - if (passenger != player) passenger.viewEngine.viewableOption.removal.accept(player); + if (passenger != player) passenger.updateOldViewer(player); } } player.sendPacket(destroyPacketCache);