From d6d6e260d7e38d3a3d5059bb2e0e7cf93ac9cd95 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 28 Dec 2014 14:56:18 +0000 Subject: [PATCH] SPIGOT-307: Fix inverted logic in WorldServer.sendParticles By: Thinkofdeath --- paper-server/nms-patches/WorldServer.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-server/nms-patches/WorldServer.patch b/paper-server/nms-patches/WorldServer.patch index 61fce35e64..832a484372 100644 --- a/paper-server/nms-patches/WorldServer.patch +++ b/paper-server/nms-patches/WorldServer.patch @@ -1,5 +1,5 @@ ---- /home/antony/work/spigot-BuildTools/work/decompile-8eb82bde//net/minecraft/server/WorldServer.java 2014-12-10 18:45:26.490705797 +0200 -+++ src/main/java/net/minecraft/server/WorldServer.java 2014-12-10 18:45:11.770706183 +0200 +--- ../work/decompile-8eb82bde//net/minecraft/server/WorldServer.java 2014-12-28 14:56:08.716418303 +0000 ++++ src/main/java/net/minecraft/server/WorldServer.java 2014-12-28 14:56:08.720418303 +0000 @@ -16,6 +16,20 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -557,7 +557,7 @@ for (int j = 0; j < this.players.size(); ++j) { EntityPlayer entityplayer = (EntityPlayer) this.players.get(j); -+ if (sender != null && !sender.getBukkitEntity().canSee(entityplayer.getBukkitEntity())) continue; // CraftBukkit ++ if (sender != null && !entityplayer.getBukkitEntity().canSee(sender.getBukkitEntity())) continue; // CraftBukkit BlockPosition blockposition = entityplayer.getChunkCoordinates(); double d7 = blockposition.c(d0, d1, d2);