1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-13 05:20:19 +02:00

Stop polluting global namespace

This commit is contained in:
Craig Robbins
2014-08-20 18:35:08 +10:00
committed by Vanessa Ezekowitz
parent 50cb0a2741
commit f44f81213c
6 changed files with 310 additions and 297 deletions

View File

@ -10,19 +10,19 @@ abstract_ferns = {}
dofile(minetest.get_modpath("ferns").."/settings.lua")
if Lady_fern == true then
dofile(minetest.get_modpath("ferns").."/fern.lua")
if abstract_ferns.config.Lady_fern == true then
dofile(minetest.get_modpath("ferns").."/fern.lua")
end
if Horsetails == true then
if abstract_ferns.Horsetails == true then
dofile(minetest.get_modpath("ferns").."/horsetail.lua")
end
if Tree_Fern == true then
if abstract_ferns.config.Tree_Fern == true then
dofile(minetest.get_modpath("ferns").."/treefern.lua")
end
if Giant_Tree_Fern == true then
if abstract_ferns.config.Giant_Tree_Fern == true then
dofile(minetest.get_modpath("ferns").."/gianttreefern.lua")
end