From d20f3ae01f3b633474ca42b23dd8e01e1f501cb8 Mon Sep 17 00:00:00 2001 From: olive Date: Fri, 18 Oct 2024 05:06:32 +0100 Subject: [PATCH] Two years, One bug --- mods/mapgen/init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mods/mapgen/init.lua b/mods/mapgen/init.lua index c326ffc..c5f1640 100644 --- a/mods/mapgen/init.lua +++ b/mods/mapgen/init.lua @@ -1,20 +1,20 @@ -local mgparams = core.get_mapgen_params() -if mgparams.mgname == "v6" then +local mgname = core.get_mapgen_setting("mg_name") +if mgname == "v6" then error("Mapgen 'v6' is not supported by Cave Game.", 0) end core.register_alias("mapgen_stone", "minecraft:stone") core.register_alias("mapgen_water_source", "air") -core.register_alias("mapgen_river_water_source", "air") +-- DO NOT SET THIS TO "air"! LEST MINETEST BE UPON YOU! +-- TWO YEARS OF PAIN! THERE WAS NO EXPLANATION IN SIGHT! +--core.register_alias("mapgen_river_water_source", ...) --- FIXME: Why dosen't node_top work properly? core.register_biome({ name = "cavegame", - node_dust = "minecraft:grass", --- node_top = "minecraft:grass", --- depth_top = 1, + node_top = "minecraft:grass", + depth_top = 1, node_stone = "minecraft:stone", heat_point = 50, humidity_point = 50, @@ -22,7 +22,7 @@ core.register_biome({ }) -if mgparams.mgname == "singlenode" then +if mgname == "singlenode" then local ground_level = tonumber(core.settings:get("water_level") or 1) local air = core.get_content_id("air") local stone = core.get_content_id("minecraft:stone")