Archiviert
13
0

SPIGOT-307: Fix inverted logic in WorldServer.sendParticles

Dieser Commit ist enthalten in:
Thinkofdeath 2014-12-28 14:56:18 +00:00
Ursprung 0e2396c22f
Commit 2d5a55b369

Datei anzeigen

@ -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 --- ../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-10 18:45:11.770706183 +0200 +++ src/main/java/net/minecraft/server/WorldServer.java 2014-12-28 14:56:08.720418303 +0000
@@ -16,6 +16,20 @@ @@ -16,6 +16,20 @@
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
@ -557,7 +557,7 @@
for (int j = 0; j < this.players.size(); ++j) { for (int j = 0; j < this.players.size(); ++j) {
EntityPlayer entityplayer = (EntityPlayer) this.players.get(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(); BlockPosition blockposition = entityplayer.getChunkCoordinates();
double d7 = blockposition.c(d0, d1, d2); double d7 = blockposition.c(d0, d1, d2);