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
|
default
|
||||||
flowers?
|
flowers?
|
||||||
moreblocks?
|
moreblocks?
|
||||||
|
skins?
|
||||||
|
@ -58,19 +58,18 @@ end)
|
|||||||
|
|
||||||
|
|
||||||
--Identify the mapgen.
|
--Identify the mapgen.
|
||||||
minetest.register_on_mapgen_init(function(MapgenParams)
|
local mgname = minetest.get_mapgen_setting"mg_name"
|
||||||
local mgname = MapgenParams.mgname
|
if not mgname then
|
||||||
if not mgname then
|
minetest.log("error", "[MOD] Snow Biomes: WARNING! mapgen could not be identifyed!")
|
||||||
io.write("[MOD] Snow Biomes: WARNING! mapgen could not be identifyed!\n")
|
end
|
||||||
end
|
local path = minetest.get_modpath"snow"
|
||||||
if mgname == "v7" then
|
if mgname == "v7" then
|
||||||
--Load mapgen_v7 compatibility.
|
--Load mapgen_v7 compatibility.
|
||||||
dofile(minetest.get_modpath("snow").."/src/mapgen_v7.lua")
|
dofile(path.."/src/mapgen_v7.lua")
|
||||||
else
|
else
|
||||||
--Load mapgen_v6 compatibility.
|
--Load mapgen_v6 compatibility.
|
||||||
dofile(minetest.get_modpath("snow").."/src/mapgen_v6.lua")
|
dofile(path.."/src/mapgen_v6.lua")
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
|
|
||||||
-- To complete the commenting-out add the *closing* comment under this line.
|
-- To complete the commenting-out add the *closing* comment under this line.
|
||||||
|
|
||||||
|
@ -60,13 +60,10 @@ end)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Christmas easter egg
|
-- Christmas egg
|
||||||
minetest.register_on_mapgen_init( function()
|
if minetest.global_exists"skins" then
|
||||||
if rawget(_G, "skins") then
|
skins.add"character_snow_man"
|
||||||
skins.add("character_snow_man")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
-- Decorated Pine Leaves
|
-- Decorated Pine Leaves
|
||||||
|
Loading…
Reference in New Issue
Block a user