mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Don't check if we can see non-visible entities
This commit is contained in:
parent
2b6b81bde9
commit
a6ef388655
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue