Make beacons force secondary potion effect application
Fixes GH-273
Missed case from earlier fix 29dccccac4
This commit is contained in:
@@ -55,7 +55,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false);
|
+ BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false);
|
||||||
+ if (CraftEventFactory.callEvent(event).isCancelled()) continue;
|
+ if (CraftEventFactory.callEvent(event).isCancelled()) continue;
|
||||||
+ PotionEffect effect = event.getEffect();
|
+ PotionEffect effect = event.getEffect();
|
||||||
+ entityhuman.getBukkitEntity().addPotionEffect(effect);
|
+ entityhuman.getBukkitEntity().addPotionEffect(effect, true);
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user