1
0
Fork 0

Fix exit portal teleporting back in flat mapgen

This commit is contained in:
Wuzzy 2017-11-21 05:57:08 +01:00
parent 7c15d5f9ac
commit 3abf2355e6
1 changed files with 3 additions and 0 deletions

View File

@ -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: