3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +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.
Dieser Commit ist enthalten in:
Zloteanu Nikita 2013-01-03 02:52:34 +02:00 committet von Wesley Wolfe
Ursprung d577b840d4
Commit 5934a65729

Datei anzeigen

@ -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