Merge pull request 'Do not emerge while making railcorridors' (#2400) from railcorridors into master

Reviewed-on: MineClone2/MineClone2#2400
Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-07 23:50:07 +00:00
commit a930f3a814
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 p.y = mcl_vars.mg_overworld_min + 5
end end
if p.y > -10 then return true end if p.y > -10 then return true end
local p1 = vector.offset(p,-def.sidelen,-def.sidelen,-def.sidelen) InitRandomizer(blockseed)
local p2 = vector.offset(p,def.sidelen,def.sidelen,def.sidelen) create_corridor_system(p, pr)
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)
return true return true
end, end,