mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-27 19:21:26 +01:00
Fix exit portal teleporting back in flat mapgen
This commit is contained in:
parent
7c15d5f9ac
commit
3abf2355e6
@ -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 New Issue
Block a user