renamed trees.lua to trees_default.lua

master
Sokomine 2020-09-20 11:16:14 +02:00
parent 64a3165b7a
commit 344e78d63c
2 changed files with 5 additions and 2 deletions

View File

@ -41,7 +41,10 @@ dofile(mg_villages.modpath.."/config.lua")
dofile(mg_villages.modpath.."/nodes.lua")
-- the default game no longer provides helpful tree growing code
dofile(mg_villages.modpath.."/trees.lua")
-- (but some mods may not have the default tree, jungletree and pinetree)
if(minetest.registered_nodes["default:sapling"]) then
dofile(mg_villages.modpath.."/trees_default.lua")
end
dofile(mg_villages.modpath.."/replacements.lua")

View File

@ -1,5 +1,5 @@
-- this code is taken from https://github.com/VanessaE/dreambuilder_game/blob/master/mods/default/trees.lua
-- The code is adjusted where needed.
-- The code is adjusted where needed. It handles tree growing for default (Minetest Game).
local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")