Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
Make AreaEffectCloudApplyEvent cancellable
Dieser Commit ist enthalten in:
Ursprung
c7ba97906c
Commit
2b1940ae24
@ -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