Make beacons force secondary potion effect application

Fixes GH-273
Missed case from earlier fix 29dccccac4
This commit is contained in:
Zach Brown 2016-05-08 15:33:53 -05:00
parent 68f8205a32
commit 324bde1f10

View file

@ -55,7 +55,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false);
+ if (CraftEventFactory.callEvent(event).isCancelled()) continue;
+ PotionEffect effect = event.getEffect();
+ entityhuman.getBukkitEntity().addPotionEffect(effect);
+ entityhuman.getBukkitEntity().addPotionEffect(effect, true);
+ // Paper end
}
}