Force potion effect application in BeaconEffectEvent
This commit is contained in:
@@ -40,7 +40,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ BeaconEffectEvent event = new BeaconEffectEvent(block, primaryEffect, (Player) entityhuman.getBukkitEntity(), true);
|
||||
+ if (CraftEventFactory.callEvent(event).isCancelled()) continue;
|
||||
+ PotionEffect effect = event.getEffect();
|
||||
+ entityhuman.getBukkitEntity().addPotionEffect(effect);
|
||||
+ entityhuman.getBukkitEntity().addPotionEffect(effect, true);
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user