1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2025-07-06 01:50:36 +02:00

make fast saplings respect nodes there growing on

This commit is contained in:
unknown
2022-07-01 15:35:54 -04:00
parent debe6a852b
commit 50cf720bac
2 changed files with 19 additions and 4 deletions

View File

@ -479,9 +479,8 @@ for i in ipairs(moretrees.treelist) do
end,
on_timer = function(pos, elapsed)
if moretrees.can_grow(pos, treename) then
minetest.chat_send_all("can grow")
minetest.chat_send_all("grow_" .. treename)
--moretrees["grow_" .. treename](pos)
minetest.set_node(pos, {name="air"})
if type(moretrees["spawn_" .. treename .. "_object"])=="string" then
local split = moretrees["spawn_" .. treename .. "_object"]:split(".")
moretrees[split[2]](pos)