Dupe with bore and block protection.
colinrgodsey opened this issue ยท 3 comments
Version Information
Forge version: 1.12.2-14.23.2.2611
Botania version: r1.10-353
Noticed this with a claims management plugin and botania. If you have a bore burst attempt to break a block, it'll drop the items even if something prevents the block from being broken.
Think it's an easy enough fix, I can open a PR when im by my dev env next. Should be able to double-check if the block is air after trying to set it, and not dropping if its not air.
does the claim plugin make setBlockToAir return false if it failed? if so, you can just check the boolean result of that instead of querying the world state again
I'd imagine it does, this plugin in question is a sponge plugin, but for this event sponge just wraps the normal forge event:
So I imagine this would also effect any pure forge forms of block protection too. Need to confirm whether or not setBlockToAir will return false, but i imagine it will?