Imprex-Development / orebfuscator

Orebfuscator - High-Performance Anti X-Ray plugin
https://modrinth.com/plugin/orebfuscator
GNU General Public License v3.0
126 stars 25 forks source link

Wrong priorities for events #321

Closed kforbro closed 1 year ago

kforbro commented 1 year ago

Description

Deobfuscation does not work if another plugin changes blacklist to EntityExplodeEvent with lower priority than Orebfuscator

Reproduction Steps

change event.blocklist() in priority lower than NORMAL

@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
    public void onEntityExplode(EntityExplodeEvent event) {
        event.blocklist().addAll(..nearby blocks...)
    }

image

Expected Behaviour

All nearby blocks must be deobfuscated

Orebfuscator Dump

Purpur 1.20.1 https://github.com/Imprex-Development/orebfuscator/commit/56e2f23f8848bc6fa4199a35bb4ebe22c523e628

Extra Details

No response