diff options
author | Zloteanu Nikita <teapa011@gmail.com> | 2013-01-03 02:52:34 +0200 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-01-17 22:55:09 -0600 |
commit | 5934a65729691e3437d22ddad98cd0b1a7df0c5c (patch) | |
tree | 9f9932fedd5dd2e71c343e4b8a96d043c866a567 /src | |
parent | d577b840d46b6783da1e011ee4c1617214860942 (diff) | |
download | craftbukkit-5934a65729691e3437d22ddad98cd0b1a7df0c5c.tar craftbukkit-5934a65729691e3437d22ddad98cd0b1a7df0c5c.tar.gz craftbukkit-5934a65729691e3437d22ddad98cd0b1a7df0c5c.tar.lz craftbukkit-5934a65729691e3437d22ddad98cd0b1a7df0c5c.tar.xz craftbukkit-5934a65729691e3437d22ddad98cd0b1a7df0c5c.zip |
Always call PotionSplashEvent. Fixes BUKKIT-3363
This change allows plugins to add recipients to a PotionSplashEvent
when it would have otherwise had none.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPotion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPotion.java b/src/main/java/net/minecraft/server/EntityPotion.java index 5d402dc8..ac570b65 100644 --- a/src/main/java/net/minecraft/server/EntityPotion.java +++ b/src/main/java/net/minecraft/server/EntityPotion.java @@ -68,7 +68,7 @@ public class EntityPotion extends EntityProjectile { AxisAlignedBB axisalignedbb = this.boundingBox.grow(4.0D, 2.0D, 4.0D); List list1 = this.world.a(EntityLiving.class, axisalignedbb); - if (list1 != null && !list1.isEmpty()) { + if (list1 != null) { // CraftBukkit - Run code even if there are no entities around Iterator iterator = list1.iterator(); // CraftBukkit |