Merge pull request #2 from OgelGames/pandorabox

Check for falling nodes after cutting with chainsaw
This commit is contained in:
Thomas Rudin 2019-09-04 15:26:34 +02:00 committed by GitHub
commit e0c7300879

View File

@ -325,6 +325,9 @@ local function recursive_dig(pos, remaining_charge)
handle_drops(minetest.get_node_drops(node.name, ""))
minetest.remove_node(pos)
remaining_charge = remaining_charge - chainsaw_charge_per_node
-- Check for snow on pine trees, etc
minetest.check_for_falling(pos)
-- Check surroundings and run recursively if any charge left
for npos in iterSawTries(pos) do