mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-22 14:50:23 +01:00
Check for falling nodes after cutting with chainsaw
This commit is contained in:
parent
d260bb0245
commit
36e48cba32
@ -325,6 +325,9 @@ local function recursive_dig(pos, remaining_charge)
|
|||||||
handle_drops(minetest.get_node_drops(node.name, ""))
|
handle_drops(minetest.get_node_drops(node.name, ""))
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
remaining_charge = remaining_charge - chainsaw_charge_per_node
|
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
|
-- Check surroundings and run recursively if any charge left
|
||||||
for npos in iterSawTries(pos) do
|
for npos in iterSawTries(pos) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user