mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Make beacons force secondary potion effect application
Fixes GH-273
Missed case from earlier fix 29dccccac4
This commit is contained in:
parent
68f8205a32
commit
324bde1f10
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user