1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2025-07-08 11:00:34 +02:00

make fast growth saplings work

This commit is contained in:
unknown
2022-07-01 15:14:09 -04:00
parent 12bcdfe57b
commit debe6a852b
4 changed files with 35 additions and 49 deletions

View File

@ -32,7 +32,7 @@ ftrunk.after_destruct = function(pos, oldnode)
-- minetest.dig_node(coconutpos) does not cause nearby coconuts to be dropped :-( ...
--minetest.dig_node(coconutpos)
local items = minetest.get_node_drops(minetest.get_node(coconutpos).name)
minetest.swap_node(coconutpos, biome_lib.air)
minetest.swap_node(coconutpos, {name = "air"})
for _, itemname in pairs(items) do
minetest.add_item(coconutpos, itemname)
end
@ -127,7 +127,7 @@ local coconut_growfn = function(pos, elapsed)
minetest.add_item(pos, itemname)
end
end
minetest.swap_node(pos, biome_lib.air)
minetest.swap_node(pos, {name = "air"})
end
else
-- Grow coconuts to the next stage