Compare commits

..

2 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ local m_eth = minetest.get_modpath("ethereal")
-- detecting cretive engine over creative privilegies -- detecting cretive engine over creative privilegies
local m_cre = minetest.get_modpath("creative") local m_cre = minetest.get_modpath("creative")
-- check recent versions -- check recent versions
local is_55 = has_feature("dynamic_add_media_table") local is_55 = minetest.has_feature("dynamic_add_media_table")
-- firefly -- firefly
minetest.register_node("fireflies:firefly", { minetest.register_node("fireflies:firefly", {

View File

@ -1,6 +1,7 @@
-- minetest.clear_registered_biomes() -- do not regenerate, we want to combine it! -- minetest.clear_registered_biomes() -- do not regenerate, we want to combine it!
-- Get setting or default -- Get setting or default
local mgv = minetest.get_mapgen_setting("mg_name") or nil
local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or "mountains, ridges, floatlands, caverns" local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or "mountains, ridges, floatlands, caverns"
local captures_float = string.match(mgv7_spflags, "floatlands") local captures_float = string.match(mgv7_spflags, "floatlands")
local captures_nofloat = string.match(mgv7_spflags, "nofloatlands") local captures_nofloat = string.match(mgv7_spflags, "nofloatlands")
@ -14,7 +15,7 @@ default.mgv7_floatland_level = floatland_y
default.mgv7_shadow_limit = minetest.get_mapgen_setting("mgv7_shadow_limit") or 1024 default.mgv7_shadow_limit = minetest.get_mapgen_setting("mgv7_shadow_limit") or 1024
-- Registering of the nodes -- Registering of the nodes
if mgv7 then
minetest.register_node("floatland:grass", { minetest.register_node("floatland:grass", {
description = "High Grass", description = "High Grass",
tiles = {"floatland_realm_grass.png", "floatland_realm_dirt.png", tiles = {"floatland_realm_grass.png", "floatland_realm_dirt.png",
@ -151,3 +152,4 @@ minetest.register_decoration({
y_max = worldlimit, y_max = worldlimit,
decoration = "default:bush_sapling", decoration = "default:bush_sapling",
}) })
end