mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 22:39:33 +01:00
Fix exit portal teleporting back in flat mapgen
This commit is contained in:
parent
7c15d5f9ac
commit
3abf2355e6
1 changed files with 3 additions and 0 deletions
|
@ -288,6 +288,9 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
if not target then
|
if not target then
|
||||||
target = { x=0, y=0, z=0 }
|
target = { x=0, y=0, z=0 }
|
||||||
|
if mg_name == "flat" then
|
||||||
|
target.y = mcl_vars.mg_bedrock_overworld_max + 5
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- End portal in any other dimension:
|
-- End portal in any other dimension:
|
||||||
|
|
Loading…
Reference in a new issue