MysticMods / Roots

Home of the Roots Minecraft Mod
GNU Lesser General Public License v3.0
44 stars 33 forks source link

Runed Smasher breaks unbreakable blocks #755

Closed WaitingIdly closed 2 years ago

WaitingIdly commented 2 years ago

General Information

Describe the bug: Runed Smasher can break bedrock via 3x3 mining.

To Reproduce:

  1. Break (valid pickaxe) block adjacent to bedrock in such a way that the mined area of the Runed Smasher would be the bedrock
  2. observe

    Expected behavior: only break blocks <= mining level


Environment Versions

Mystic Mods Versions

Other Versions:


Logging Information

Please Use gist, paste.ee, pastebin or some other log sharing service

Crash Report (if available): N/A

Latest Log (if necessary):


Additional Information

Screenshots (if available): """screenshot"""

https://user-images.githubusercontent.com/25394029/134505399-a0e94bb9-4e3a-400b-9fd8-1af498936d19.mp4

Additional context (optional):

DoomRater commented 2 years ago

I can't believe I never tried to see if that was an exploit possible

WaitingIdly commented 2 years ago

minor update: if you break with silk touch, you get the bedrock block - otherwise its just destroyed.

noobanidus commented 2 years ago

Yeah, I swear I had code in place to ensure this didn't happen. I'm wondering if it's special-cased and my code doesn't catch it.

noobanidus commented 2 years ago

This isn't necessarily the best solution, but I've basically added a block blacklist with bedrock in it by default.