BuildCraft icon indicating copy to clipboard operation
BuildCraft copied to clipboard

Actually fix #4608 Mining Well cannot mine through flowing water blocks

Open ghost opened this issue 5 years ago • 2 comments

Actually fix issue #4608

This time, actually took the effort to clone, build and test the proposed changes.

Reworked logic, which finds the next block to be mined (nextPos). Added new method, which determines if a block is traversable (canMoveThrough). This method is called in the reworked nextPos method.

Tested following cases:

  • No obstruction: mining well behaves normally.
  • Obstructed by flowing water block: Mining well goes through it and mines blocks below.
  • Obstructed by water source block: Mining well goes through it, water source block is destroyed (due to tube) and blocks are mined below.
  • Obstructed by lava (density larger then 1000): Mining well stops.
  • Obstructed by bedrock: Mining well stops.
  • Obstructed by bedrock, with minable block below: Mining well stops (does not target block below and goes through the bedrock).

ghost avatar Dec 13 '20 17:12 ghost

I want to fix this bug in my world but i dont known how to change the code. Can you send the mod fixed? I have been trying to fix it but I didnt found anything. Thanks

Aitormantilla avatar Aug 18 '22 19:08 Aitormantilla

Please don't waltz into pull requests just to be rude to others, @JukoiDev

asiekierka avatar Mar 16 '23 14:03 asiekierka