Only load falling_ice.lua if configured to do so
This commit is contained in:
parent
218738812e
commit
bf647b692a
6
init.lua
6
init.lua
@ -13,10 +13,14 @@ local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|||||||
--load companion lua files
|
--load companion lua files
|
||||||
dofile(modpath.."/config.lua") --configuration file; holds various constants
|
dofile(modpath.."/config.lua") --configuration file; holds various constants
|
||||||
dofile(modpath.."/crafting.lua") --crafting recipes
|
dofile(modpath.."/crafting.lua") --crafting recipes
|
||||||
dofile(modpath.."/falling_ice.lua") --complicated function for falling icicles
|
|
||||||
dofile(modpath.."/nodes.lua") --node definitions
|
dofile(modpath.."/nodes.lua") --node definitions
|
||||||
dofile(modpath.."/functions.lua") --function definitions
|
dofile(modpath.."/functions.lua") --function definitions
|
||||||
|
|
||||||
|
if caverealms.config.falling_icicles == true then
|
||||||
|
dofile(modpath.."/falling_ice.lua") --complicated function for falling icicles
|
||||||
|
print("[caverealms] falling icicles enabled.")
|
||||||
|
end
|
||||||
|
|
||||||
-- Parameters
|
-- Parameters
|
||||||
|
|
||||||
local YMIN = caverealms.config.ymin -- Approximate realm limits.
|
local YMIN = caverealms.config.ymin -- Approximate realm limits.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user