EngineHub / WorldGuard

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

Error when using WindCharge in Minecraft 1.21 with WorldGuard (NoSuchMethodError for getExplosionResult) #2149

Closed BitholSatapathy closed 1 month ago

BitholSatapathy commented 1 month ago

WorldEdit Version

2.11.2

WorldGuard Version

7.0.12 mc1.21+

Platform Version

paper-1.21

Confirmations

Bug Description

When using the WindCharge item in Minecraft 1.21 (with Paper and WorldGuard v7.0.12), an error occurs when the WindCharge explodes. The error is related to WorldGuard attempting to use the method getExplosionResult, which does not exist in this version of the Paper API, causing a NoSuchMethodError.

Expected Behavior

The WindCharge should trigger an explosion without causing errors in the console. WorldGuard should manage explosion events correctly, allowing them to either be blocked or allowed based on region flags.

Reproduction Steps

1.Enable WorldGuard on the server with default or custom region settings. 2.Use a WindCharge item in-game and let it explode near blocks or entities. 3.Observe the server console for the following error message.txt

Optional WorldGuard-Report

No response

Anything Else?

No response