BuildCraft
BuildCraft copied to clipboard
Actually fix #4608 Mining Well cannot mine through flowing water blocks
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).
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
Please don't waltz into pull requests just to be rude to others, @JukoiDev