Two years, One bug

This commit is contained in:
Olive 2024-10-18 05:06:32 +01:00
parent cb4f483d58
commit d20f3ae01f
1 changed files with 8 additions and 8 deletions

View File

@ -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")