From e2116ce5c658c1b1b4585404e946d68a81354042 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Thu, 22 Jun 2023 22:19:17 -0400 Subject: [PATCH] floatland - only works with mg7 cos floatlands --- mods/floatland/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/floatland/init.lua b/mods/floatland/init.lua index 1372ff5..a1f9dbc 100644 --- a/mods/floatland/init.lua +++ b/mods/floatland/init.lua @@ -1,6 +1,7 @@ -- minetest.clear_registered_biomes() -- do not regenerate, we want to combine it! -- 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 captures_float = string.match(mgv7_spflags, "floatlands") 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 -- Registering of the nodes - +if mgv7 then minetest.register_node("floatland:grass", { description = "High Grass", tiles = {"floatland_realm_grass.png", "floatland_realm_dirt.png", @@ -151,3 +152,4 @@ minetest.register_decoration({ y_max = worldlimit, decoration = "default:bush_sapling", }) +end