13
0
geforkt von Mirrors/Paper

Make AreaEffectCloudApplyEvent cancellable

By: bermudalocket <bermudalckt@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2019-02-07 00:40:41 -05:00
Ursprung d39743e20c
Commit 64264bdd79

Datei anzeigen

@ -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();