mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-22 23:00:22 +01:00
Merge pull request #2 from OgelGames/pandorabox
Check for falling nodes after cutting with chainsaw
This commit is contained in:
commit
e0c7300879
@ -326,6 +326,9 @@ local function recursive_dig(pos, remaining_charge)
|
||||
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
|
||||
if remaining_charge < chainsaw_charge_per_node then
|
||||
|
Loading…
x
Reference in New Issue
Block a user