mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 06:46:59 +01:00
Always call PotionSplashEvent. Fixes BUKKIT-3363
This change allows plugins to add recipients to a PotionSplashEvent when it would have otherwise had none.
This commit is contained in:
parent
d577b840d4
commit
5934a65729
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue