fix deprecated messages

M  depends.txt
M  src/mapgen.lua
M  src/nodes.lua
This commit is contained in:
HybridDog 2016-07-31 18:32:49 +02:00
parent 850e5d9d33
commit a5ae53fbeb
3 changed files with 16 additions and 19 deletions

View File

@ -1,3 +1,4 @@
default
flowers?
moreblocks?
skins?

View File

@ -58,19 +58,18 @@ end)
--Identify the mapgen.
minetest.register_on_mapgen_init(function(MapgenParams)
local mgname = MapgenParams.mgname
if not mgname then
io.write("[MOD] Snow Biomes: WARNING! mapgen could not be identifyed!\n")
end
if mgname == "v7" then
--Load mapgen_v7 compatibility.
dofile(minetest.get_modpath("snow").."/src/mapgen_v7.lua")
else
--Load mapgen_v6 compatibility.
dofile(minetest.get_modpath("snow").."/src/mapgen_v6.lua")
end
end)
local mgname = minetest.get_mapgen_setting"mg_name"
if not mgname then
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(path.."/src/mapgen_v7.lua")
else
--Load mapgen_v6 compatibility.
dofile(path.."/src/mapgen_v6.lua")
end
-- To complete the commenting-out add the *closing* comment under this line.

View File

@ -60,13 +60,10 @@ end)
--Christmas easter egg
minetest.register_on_mapgen_init( function()
if rawget(_G, "skins") then
skins.add("character_snow_man")
end
-- Christmas egg
if minetest.global_exists"skins" then
skins.add"character_snow_man"
end
)
-- Decorated Pine Leaves