Do not emerge while making railcorridors

it turns out to work fine without
This commit is contained in:
cora 2022-07-06 01:42:32 +02:00
parent b0da96611e
commit f98242bb0c
1 changed files with 2 additions and 8 deletions

View File

@ -1122,14 +1122,8 @@ mcl_structures.register_structure("mineshaft",{
p.y = mcl_vars.mg_overworld_min + 5
end
if p.y > -10 then return true end
local p1 = vector.offset(p,-def.sidelen,-def.sidelen,-def.sidelen)
local p2 = vector.offset(p,def.sidelen,def.sidelen,def.sidelen)
minetest.emerge_area(p1, p2, function(blockpos, action, calls_remaining, param)
if calls_remaining ~= 0 then return end
--minetest.log("lol")
InitRandomizer(blockseed)
create_corridor_system(p, pr)
end)
InitRandomizer(blockseed)
create_corridor_system(p, pr)
return true
end,