EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
812 stars 528 forks source link

Denying ghast-fireball prevents wind charges from working #2099

Open LenderSchlender opened 6 days ago

LenderSchlender commented 6 days ago

WorldEdit Version

WorldEdit 7.3.4 Beta 1

WorldGuard Version

7.0.11-beta1

Platform Version

Paper 1.21 Build 40

Confirmations

Bug Description

Setting the ghast-fireball flag to Deny in a region causes this region to also block wind charges.

Expected Behavior

Wind charges should not be affected by the ghast-fireball flag.

Reproduction Steps

  1. Set the ghast-fireball flag to Deny
  2. Attempt to use a wind charge This issue also occurs with Breezes

Optional WorldGuard-Report

No response

Anything Else?

I suspect this issue occurs because AbstractWindCharge extends the Fireball interface, which is being used by WorldGuard to detect Ghast fireball explosions in the onEntityExplode method of the WorldGuardEntityListener.