From 4f2837a4a7e7f8a68aa45e78da9acb533398652b Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Wed, 15 Jul 2015 22:54:23 +0200 Subject: [PATCH] Watershed should generate in the nether nether can't generate in the air. It needs a pre-existent terrain to override. --- minetestforfun_game/mods/default/trees.lua | 1 - mods/watershed/init.lua | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/minetestforfun_game/mods/default/trees.lua b/minetestforfun_game/mods/default/trees.lua index 7ebc585e..87c53f96 100755 --- a/minetestforfun_game/mods/default/trees.lua +++ b/minetestforfun_game/mods/default/trees.lua @@ -355,7 +355,6 @@ minetest.register_node("default:mg_cherry_sapling", { local c_mg_cherry_sapling = minetest.get_content_id("default:mg_cherry_sapling") minetest.register_on_generated(function(minp, maxp, seed) - if minp.y < -19600 then return end -- no generate in nether local timer = os.clock() local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") local data = vm:get_data() diff --git a/mods/watershed/init.lua b/mods/watershed/init.lua index 47a45373..6d0dedde 100755 --- a/mods/watershed/init.lua +++ b/mods/watershed/init.lua @@ -720,7 +720,7 @@ minetest.register_chatcommand("regen",{ local x1 = x0 + 79 local y1 = y0 + 79 local z1 = z0 + 79 - if y0 < -19600 then return end -- no generate in nether + if y0 < YMIN or y1 > YMAX then return end @@ -753,7 +753,6 @@ minetest.register_chatcommand("regen",{ -- On generated function minetest.register_on_generated(function(minp, maxp, seed) - if minp.y < -19600 then return end -- no generate in nether if minp.y < YMIN or maxp.y > YMAX then return end