From 1a82a65badd4d311fab8debbd5c4ea4cf8eb7122 Mon Sep 17 00:00:00 2001 From: Oliver Simmons Date: Sun, 18 Sep 2022 10:29:29 +0100 Subject: [PATCH] Temporary biome fix --- mods/mapgen/init.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mods/mapgen/init.lua b/mods/mapgen/init.lua index 6c869d7..f6223d0 100644 --- a/mods/mapgen/init.lua +++ b/mods/mapgen/init.lua @@ -1,15 +1,14 @@ if minetest.get_mapgen_params().mgname == "singlenode" then local ground_level = tonumber(minetest.settings:get("water_level") or 1) + local air = minetest.get_content_id("air") + local stone = minetest.get_content_id("minecraft:stone") + local grass = minetest.get_content_id("minecraft:grass") minetest.register_on_generated(function(minp, maxp, blockseed) local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") local va = VoxelArea:new({MinEdge=emin, MaxEdge=emax}) - local air = minetest.get_content_id("air") - local stone = minetest.get_content_id("minecraft:stone") - local grass = minetest.get_content_id("minecraft:grass") - local nodes = vm:get_data() for i, _ in pairs(nodes) do @@ -27,12 +26,12 @@ if minetest.get_mapgen_params().mgname == "singlenode" then vm:write_to_map() end) else + -- FIXME: Why dosen't node_top work properly? minetest.register_biome({ name = "cavegame", - -- node_dust = "air", - node_top = "minecraft:grass", - depth_top = 1, - -- depth_filler = 1, + node_dust = "minecraft:grass", + -- node_top = "minecraft:grass", + -- depth_top = 1, node_stone = "minecraft:stone", heat_point = 50, humidity_point = 50,