mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
ParticleBuilder.hasReceivers shouldnt return true if no players are in the world
This commit is contained in:
@@ -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
|
diff --git a/src/main/java/com/destroystokyo/paper/ParticleBuilder.java b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..ef07ab3c
|
index 00000000..bf4edd07
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
+++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
@@ -96,7 +96,7 @@ index 00000000..ef07ab3c
|
|||||||
+ * @return If this particle is going to be sent to someone
|
+ * @return If this particle is going to be sent to someone
|
||||||
+ */
|
+ */
|
||||||
+ public boolean hasReceivers() {
|
+ public boolean hasReceivers() {
|
||||||
+ return receivers == null || !receivers.isEmpty();
|
+ return (receivers == null && !location.getWorld().getPlayers().isEmpty()) || !receivers.isEmpty();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
|
Reference in New Issue
Block a user