mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 11:58:06 +01:00
Don't check if we can see non-visible entities
This commit is contained in:
parent
2b6b81bde9
commit
a6ef388655
@ -404,7 +404,7 @@
|
|||||||
+ // Paper end - Configurable entity tracking range by Y
|
+ // Paper end - Configurable entity tracking range by Y
|
||||||
|
|
||||||
+ // CraftBukkit start - respect vanish API
|
+ // 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;
|
+ flag = false;
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
Loading…
Reference in New Issue
Block a user