From d4dffd1d7140a35ddb9b2aac4ffc2e6cff5f8f7a Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 6 Jun 2018 21:35:44 -0400 Subject: [PATCH] ParticleBuilder.hasReceivers shouldnt return true if no players are in the world --- ...102-Expand-World.spawnParticle-API-and-add-Builder.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Spigot-API-Patches/0102-Expand-World.spawnParticle-API-and-add-Builder.patch b/Spigot-API-Patches/0102-Expand-World.spawnParticle-API-and-add-Builder.patch index c2fc59746d..04acc39241 100644 --- a/Spigot-API-Patches/0102-Expand-World.spawnParticle-API-and-add-Builder.patch +++ b/Spigot-API-Patches/0102-Expand-World.spawnParticle-API-and-add-Builder.patch @@ -1,4 +1,4 @@ -From 4d48c8f3cf54c6845922fb62b32adcab7d1558dd Mon Sep 17 00:00:00 2001 +From 6583e28c44eaa9d3a5f6fa225e4dafa82d2aa95e Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 29 Aug 2017 23:58:48 -0400 Subject: [PATCH] Expand World.spawnParticle API and add Builder @@ -10,7 +10,7 @@ This adds a new Builder API which is much friendlier to use. diff --git a/src/main/java/com/destroystokyo/paper/ParticleBuilder.java b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java new file mode 100644 -index 00000000..ef07ab3c +index 00000000..bf4edd07 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java @@ -0,0 +1,363 @@ @@ -96,7 +96,7 @@ index 00000000..ef07ab3c + * @return If this particle is going to be sent to someone + */ + public boolean hasReceivers() { -+ return receivers == null || !receivers.isEmpty(); ++ return (receivers == null && !location.getWorld().getPlayers().isEmpty()) || !receivers.isEmpty(); + } + + /**