From a244b43bf22f32502f53c8218f3d9744f13a28aa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Feb 2017 00:32:31 +0100 Subject: [PATCH] Remove unused flower aliases --- mods/MAPGEN/mcl_mapgen_plants/init.lua | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/mods/MAPGEN/mcl_mapgen_plants/init.lua b/mods/MAPGEN/mcl_mapgen_plants/init.lua index 4ed897cc6a..0d9729bc37 100644 --- a/mods/MAPGEN/mcl_mapgen_plants/init.lua +++ b/mods/MAPGEN/mcl_mapgen_plants/init.lua @@ -1,25 +1,7 @@ -minetest.register_alias("mapgen_dandelion", "mcl_flowers:dandelion") -minetest.register_alias("mapgen_rose", "mcl_flowers:rose") - -minetest.register_alias("mapgen_oxeye_daisy", "mcl_flowers:oxeye_daisy") - -minetest.register_alias("mapgen_tulip_orange", "mcl_flowers:tulip_orange") -minetest.register_alias("mapgen_tulip_pink", "mcl_flowers:tulip_pink") -minetest.register_alias("mapgen_tulip_red", "mcl_flowers:tulip_red") -minetest.register_alias("mapgen_tulip_white", "mcl_flowers:tulip_white") - -minetest.register_alias("mapgen_allium", "mcl_flowers:allium") - -minetest.register_alias("mapgen_poppy", "mcl_flowers:poppy") - -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 +-- Don't generate 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