Closed lackooka closed 2 years ago
Just linking to this previous issue in case its of any usage on this issue. #697
We recently had #697 conclude with a "cannot reproduce" conclusion from the person reporting the issue, so it's nice to see another set of reproduction steps that might bring about some sort of clear solution.
That solution is not to lower the priority, however. That would break so many other things.
I can see that my last comment on the other issue mentioned the cancel state from the input event not being copied over. Could you try that instead of changing the priority to see if that also fixes the problem? Just add fake.setCancelled(event.isCancelled());
between these two lines:
EntityExplodeEvent fake = new EntityExplodeEvent(null, event.getBlock().getLocation(), blocks, event.getYield());
entityExplode(fake);
I added it, and it works at the moment. I hope it could be stay in this option.
I think we should get this fix implemented and tested before closing the issue :)
@lackooka Hey I tried replicating your bug on a clean setup with ONLY WorldEdit and WorldGuard. And I cannot get a region to block explosions made by respawn anchors. I'm not sure this is 100% a MobArena problem, as I didn't even have MobArena on my server and the explosion still destroyed blocks inside of my regions. TNT did not remove blocks inside the region, only respawn anchors. I did not test beds in the nether.
Are you able to make a test server and let me know if you experience the same thing I did with only WorldGuard and WorldEdit on the server? Or am I missing some flags for the regions here?
I just added 1 line for the mobarena code which is in this commit or idk what is the name for it, and the problem was solved and it works really fine. The problem was the LWC protected blocks got exploded. The TNT and the respawn anchor/bed explosion are totally different in the java codes.
And the worldguard has "other-explosion" flag for it. You can add it for the protections or just in the config globally.
Bug report
Short description
When the plugin is active, the LWC and the Worldguard proctects are just overide in global because it is Highest priority.
I found in the code which is in the MAGlobalListener.class at 193th and 199th line:
Reproduction steps
Details
MobArena version: 0.106 LWC Version: 2.2.7-ad0f824 WorldGuard version: 7.0.5+3827266 Server version: Paper 1.16.5-649
Additional info
I just replace the HIGHEST to LOWEST and then it is not exploded. If you want to see them, I can send you videos of it.