EngineHub / WorldGuard

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

Avoid using metadata storage if possible #2150

Closed Joo200 closed 1 month ago

Joo200 commented 1 month ago

Currently the sources for creeper explosions and falling blocks are stored in the metadata section of bukkit. The metadata section is never cleared so with a lot of falling blocks there is a memory leak.

This PR removes the tracking for Creeper explosions since there is already Creeper#getIgniter().

For Paper we use FallingBlock#getOrigin() if the config options usePaperEntityOrigin is enabled.

Closes #1535