From 3abf2355e64ad498f15a52e45f8ab4dd8a2e01af Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Nov 2017 05:57:08 +0100 Subject: [PATCH] Fix exit portal teleporting back in flat mapgen --- mods/ITEMS/mcl_portals/portal_end.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_portals/portal_end.lua b/mods/ITEMS/mcl_portals/portal_end.lua index 55f934a8f4..9e59bbc774 100644 --- a/mods/ITEMS/mcl_portals/portal_end.lua +++ b/mods/ITEMS/mcl_portals/portal_end.lua @@ -288,6 +288,9 @@ minetest.register_abm({ end if not target then target = { x=0, y=0, z=0 } + if mg_name == "flat" then + target.y = mcl_vars.mg_bedrock_overworld_max + 5 + end end else -- End portal in any other dimension: