From 827d7ec53832c319c4acfee07181d598054fbca6 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sun, 6 Dec 2020 22:45:44 +0400 Subject: [PATCH] Fix attempt to index local 'pos' at ITEMS/mcl_portals/portal_nether.lua:728 --- mods/ITEMS/mcl_portals/portal_nether.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_portals/portal_nether.lua b/mods/ITEMS/mcl_portals/portal_nether.lua index ae2552ad..d3552001 100644 --- a/mods/ITEMS/mcl_portals/portal_nether.lua +++ b/mods/ITEMS/mcl_portals/portal_nether.lua @@ -723,6 +723,9 @@ local function animation(player, playername) local chatter = touch_chatter_prevention[player] or 0 if mcl_portals.nether_portal_cooloff[player] or minetest.get_us_time() - chatter < TOUCH_CHATTER_TIME_US then local pos = player:get_pos() + if not pos then + return + end minetest.add_particlespawner({ amount = 1, minpos = {x = pos.x - 0.1, y = pos.y + 1.4, z = pos.z - 0.1},