From 36217e283401b0a7279d3abc4ce3eac42ab3d0a0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Feb 2017 00:31:31 +0100 Subject: [PATCH] Move flowers mapgen to new mod --- mods/ITEMS/mcl_flowers/init.lua | 6 ------ mods/MAPGEN/mcl_biomes/init.lua | 3 +++ mods/MAPGEN/mcl_mapgen_plants/depends.txt | 2 ++ .../mapgen.lua => MAPGEN/mcl_mapgen_plants/init.lua} | 0 4 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 mods/MAPGEN/mcl_mapgen_plants/depends.txt rename mods/{ITEMS/mcl_flowers/mapgen.lua => MAPGEN/mcl_mapgen_plants/init.lua} (100%) diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 3b0ccc4c98..035f589f6c 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -3,12 +3,6 @@ local init = os.clock() flower_tmp={} - --- Map Generation -dofile(minetest.get_modpath("mcl_flowers").."/mapgen.lua") - - - ------------------------------- --- Fleur Simple (une case) --- ------------------------------- diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index fc06e4589b..98523c10e8 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -246,5 +246,8 @@ if mg_name ~= "v6" and mg_name ~= "flat" then register_decorations() elseif mg_name == "flat" then -- Implementation of Minecraft's Superflat mapgen, classic style + minetest.clear_registered_biomes() + minetest.clear_registered_decorations() + minetest.clear_registered_schematics() register_classic_superflat_biome() end diff --git a/mods/MAPGEN/mcl_mapgen_plants/depends.txt b/mods/MAPGEN/mcl_mapgen_plants/depends.txt new file mode 100644 index 0000000000..a7031ce8fe --- /dev/null +++ b/mods/MAPGEN/mcl_mapgen_plants/depends.txt @@ -0,0 +1,2 @@ +mcl_core +mcl_flowers diff --git a/mods/ITEMS/mcl_flowers/mapgen.lua b/mods/MAPGEN/mcl_mapgen_plants/init.lua similarity index 100% rename from mods/ITEMS/mcl_flowers/mapgen.lua rename to mods/MAPGEN/mcl_mapgen_plants/init.lua