mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Make AreaEffectCloudApplyEvent cancellable
This commit is contained in:
parent
c7ba97906c
commit
2b1940ae24
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@
|
|||
+ }
|
||||
+ }
|
||||
+ org.bukkit.event.entity.AreaEffectCloudApplyEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callAreaEffectCloudApplyEvent(this, entities);
|
||||
+ if (true) { // Preserve NMS spacing and bracket count for smallest diff
|
||||
+ if (!event.isCancelled()) {
|
||||
+ for (LivingEntity entity : event.getAffectedEntities()) {
|
||||
+ if (entity instanceof CraftLivingEntity) {
|
||||
+ EntityLiving entityliving = ((CraftLivingEntity) entity).getHandle();
|
||||
|
|
Loading…
Reference in a new issue