geforkt von Mirrors/Paper
Make AreaEffectCloudApplyEvent cancellable
By: bermudalocket <bermudalckt@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
d39743e20c
Commit
64264bdd79
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren