1
0
Fork 0

Fix attempt to index local 'pos' at ITEMS/mcl_portals/portal_nether.lua:728

This commit is contained in:
kay27 2020-12-06 22:45:44 +04:00
parent 92785f7411
commit 827d7ec538
1 changed files with 3 additions and 0 deletions

View File

@ -723,6 +723,9 @@ local function animation(player, playername)
local chatter = touch_chatter_prevention[player] or 0 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 if mcl_portals.nether_portal_cooloff[player] or minetest.get_us_time() - chatter < TOUCH_CHATTER_TIME_US then
local pos = player:get_pos() local pos = player:get_pos()
if not pos then
return
end
minetest.add_particlespawner({ minetest.add_particlespawner({
amount = 1, amount = 1,
minpos = {x = pos.x - 0.1, y = pos.y + 1.4, z = pos.z - 0.1}, minpos = {x = pos.x - 0.1, y = pos.y + 1.4, z = pos.z - 0.1},