Merge pull request 'Do not emerge while making railcorridors' (#2400) from railcorridors into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2400 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>wood_api
commit
a930f3a814
|
@ -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)
|
|
||||||
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)
|
InitRandomizer(blockseed)
|
||||||
create_corridor_system(p, pr)
|
create_corridor_system(p, pr)
|
||||||
end)
|
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue