mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-17 07:50:29 +01:00
Watershed should generate in the nether
nether can't generate in the air. It needs a pre-existent terrain to override.
This commit is contained in:
parent
54975d36f2
commit
4f2837a4a7
|
@ -355,7 +355,6 @@ minetest.register_node("default:mg_cherry_sapling", {
|
||||||
local c_mg_cherry_sapling = minetest.get_content_id("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)
|
minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
if minp.y < -19600 then return end -- no generate in nether
|
|
||||||
local timer = os.clock()
|
local timer = os.clock()
|
||||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||||
local data = vm:get_data()
|
local data = vm:get_data()
|
||||||
|
|
|
@ -720,7 +720,7 @@ minetest.register_chatcommand("regen",{
|
||||||
local x1 = x0 + 79
|
local x1 = x0 + 79
|
||||||
local y1 = y0 + 79
|
local y1 = y0 + 79
|
||||||
local z1 = z0 + 79
|
local z1 = z0 + 79
|
||||||
if y0 < -19600 then return end -- no generate in nether
|
|
||||||
if y0 < YMIN or y1 > YMAX then
|
if y0 < YMIN or y1 > YMAX then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -753,7 +753,6 @@ minetest.register_chatcommand("regen",{
|
||||||
-- On generated function
|
-- On generated function
|
||||||
|
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
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
|
if minp.y < YMIN or maxp.y > YMAX then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user