From a6ef3886553de1cf4387080f32dc3cc0eedbb2bf Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Sat, 21 Oct 2023 20:52:57 +0100 Subject: [PATCH] Don't check if we can see non-visible entities --- .../sources/net/minecraft/server/level/ChunkMap.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch b/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch index 90da808485..e5a756b76a 100644 --- a/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch +++ b/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch @@ -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