Skip to content

Commit

Permalink
fix deprecated messages
Browse files Browse the repository at this point in the history
M  depends.txt
M  src/mapgen.lua
M  src/nodes.lua
  • Loading branch information
HybridDog committed Jul 31, 2016
1 parent 850e5d9 commit a5ae53f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
1 change: 1 addition & 0 deletions depends.txt
@@ -1,3 +1,4 @@
default
flowers?
moreblocks?
skins?
25 changes: 12 additions & 13 deletions src/mapgen.lua
Expand Up @@ -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.
Expand Down
9 changes: 3 additions & 6 deletions src/nodes.lua
Expand Up @@ -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
Expand Down

0 comments on commit a5ae53f

Please sign in to comment.