From 177defa9debde831942c2794d778d66e754c3ff9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Feb 2017 00:29:03 +0100 Subject: [PATCH] Don't generate flowers in flat mapgen --- mods/ITEMS/mcl_flowers/mapgen.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_flowers/mapgen.lua b/mods/ITEMS/mcl_flowers/mapgen.lua index 95da4cc9..4ed897cc 100644 --- a/mods/ITEMS/mcl_flowers/mapgen.lua +++ b/mods/ITEMS/mcl_flowers/mapgen.lua @@ -16,6 +16,10 @@ minetest.register_alias("mapgen_azure_bluet", "mcl_flowers:azure_bluet") minetest.register_alias("mapgen_blue_orchid", "mcl_flowers:blue_orchid") + +-- Don't spawn flowers in flat mapgen +local mg_name = minetest.get_mapgen_setting("mg_name") +if mg_name ~= "flat" then minetest.register_on_generated(function(minp, maxp, seed) if maxp.y >= 3 and minp.y <= 0 then -- Generate flowers @@ -103,3 +107,5 @@ minetest.register_on_generated(function(minp, maxp, seed) end end end) + +end