From 5934a65729691e3437d22ddad98cd0b1a7df0c5c Mon Sep 17 00:00:00 2001 From: Zloteanu Nikita Date: Thu, 3 Jan 2013 02:52:34 +0200 Subject: [PATCH] Always call PotionSplashEvent. Fixes BUKKIT-3363 This change allows plugins to add recipients to a PotionSplashEvent when it would have otherwise had none. --- src/main/java/net/minecraft/server/EntityPotion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityPotion.java b/src/main/java/net/minecraft/server/EntityPotion.java index 5d402dc8c8..ac570b6546 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