Mining Drill Breaks Unbreakable Items
Bituvo opened this issue · comments
The mining drills provided by this mod are able to break normally unbreakable blocks, such as default:cloud.
Should be simple enough to fix
Relevant code:
technic/technic/tools/mining_drill.lua
Lines 49 to 65 in ec3a52c
Looks like there is basically just a hardcoded blacklist 😖
Parts of the quarry-code could be used to replace that, or even shared globally:
technic/technic/machines/HV/quarry.lua
Lines 172 to 184 in ec3a52c
EDIT: the vacuum:vacuum
node check is redundant btw, the node-def already has diggable = false
on it
Not sure if this could be a feature-bug or not, probably better to fix it though. (I wonder if it might be good to add fixes for other feature-bugs with a setting to allow them)
Looks like there is basically just a hardcoded blacklist 😖
Yep, the drills haven't gotten a rewrite yet :)
EDIT: the vacuum:vacuum node check is redundant btw, the node-def already has diggable = false on it
That was just a minor optimization for the quarry. (no clue if it actually makes any significant difference)
Can we just use the code from the quarry for the drill? It looks like it would work better, since it's less hardcoded.
Can we just use the code from the quarry for the drill? It looks like it would work better, since it's less hardcoded.
Sure, that's the plan, no one is working on that currently so if you want to try that, go ahead 👍
no one is working on that currently
Not on that exact issue but I would still request minimal changes to avoid big conflicts with #233
Or I could finish that one quickly and fork all mods that have not accepted PR to mt-mods org.
There's just one PR I've added few days ago and promised to add another optional PR soon after. not done that yet but I do have code available that should be fine.