forked from mtcontrib/minetest-mod-snow
fix deprecated messages
M depends.txt M src/mapgen.lua M src/nodes.lua
This commit is contained in:
parent
850e5d9d33
commit
a5ae53fbeb
@ -1,3 +1,4 @@
|
||||
default
|
||||
flowers?
|
||||
moreblocks?
|
||||
skins?
|
||||
|
@ -58,19 +58,18 @@ end)
|
||||
|
||||
|
||||
--Identify the mapgen.
|
||||
minetest.register_on_mapgen_init(function(MapgenParams)
|
||||
local mgname = MapgenParams.mgname
|
||||
local mgname = minetest.get_mapgen_setting"mg_name"
|
||||
if not mgname then
|
||||
io.write("[MOD] Snow Biomes: WARNING! mapgen could not be identifyed!\n")
|
||||
minetest.log("error", "[MOD] Snow Biomes: WARNING! mapgen could not be identifyed!")
|
||||
end
|
||||
local path = minetest.get_modpath"snow"
|
||||
if mgname == "v7" then
|
||||
--Load mapgen_v7 compatibility.
|
||||
dofile(minetest.get_modpath("snow").."/src/mapgen_v7.lua")
|
||||
dofile(path.."/src/mapgen_v7.lua")
|
||||
else
|
||||
--Load mapgen_v6 compatibility.
|
||||
dofile(minetest.get_modpath("snow").."/src/mapgen_v6.lua")
|
||||
dofile(path.."/src/mapgen_v6.lua")
|
||||
end
|
||||
end)
|
||||
|
||||
-- To complete the commenting-out add the *closing* comment under this line.
|
||||
|
||||
|
@ -60,13 +60,10 @@ end)
|
||||
|
||||
|
||||
|
||||
--Christmas easter egg
|
||||
minetest.register_on_mapgen_init( function()
|
||||
if rawget(_G, "skins") then
|
||||
skins.add("character_snow_man")
|
||||
-- Christmas egg
|
||||
if minetest.global_exists"skins" then
|
||||
skins.add"character_snow_man"
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
-- Decorated Pine Leaves
|
||||
|
Loading…
Reference in New Issue
Block a user