Force potion effect application in BeaconEffectEvent

This commit is contained in:
Zach Brown 2016-03-18 20:45:22 -05:00
parent 80dcb6c4a3
commit 29dccccac4

View File

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