From b49f4ce73d0d688e919d204ad513556202b5048e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?= Date: Thu, 9 Jan 2020 01:56:49 +0800 Subject: [PATCH] Fix error caused by teleporting offline players (#12) --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 303d429..90e5c83 100644 --- a/init.lua +++ b/init.lua @@ -297,6 +297,9 @@ minetest.register_abm({ -- teleport the player minetest.after(3, function(o, p, t) local objpos = o:getpos() + if not objpos then -- player quit the game while teleporting + return + end objpos.y = objpos.y + 0.1 -- Fix some glitches at -8000 if minetest.get_node(objpos).name ~= "nether:portal" then return