Don't check if we can see non-visible entities

This commit is contained in:
Brokkonaut 2023-10-21 20:52:57 +01:00
parent 2b6b81bde9
commit a6ef388655

View file

@ -404,7 +404,7 @@
+ // Paper end - Configurable entity tracking range by Y
+ // CraftBukkit start - respect vanish API
+ if (!player.getBukkitEntity().canSee(this.entity.getBukkitEntity())) {
+ if (flag && !player.getBukkitEntity().canSee(this.entity.getBukkitEntity())) { // Paper - only consider hits
+ flag = false;
+ }
+ // CraftBukkit end