CraftoryStudios / Craftory-Tech

Craftory sets out to extend and push the boundaries of vanilla Minecraft, offering features only thought possible before with Modded Minecraft.
https://craftory.studio/craftory-tech/
GNU General Public License v3.0
15 stars 9 forks source link

fix(blocks): change order of block placement actions to fix protection #177

Closed brettsaunders21 closed 2 years ago

brettsaunders21 commented 2 years ago

Currently protection plugin checks are called on block place before we check if a custom block is being placed. We should only cancel the block place event if we are sure the block belongs to our plugin.

This also removes the check for if cancelled and instead passes it to the event handler.