From 0ca04bb40d13338b28a6d35b0809508075c692cb Mon Sep 17 00:00:00 2001 From: gpcf Date: Thu, 26 Sep 2024 17:26:15 +0200 Subject: additional nil check --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 79b921e..1d9bf74 100644 --- a/init.lua +++ b/init.lua @@ -130,6 +130,9 @@ end smartshop.receive_fields=function(player,pressed) local pname = player:get_player_name() + if not smartshop.user[pname] then + return + end local pos = smartshop.user[pname][1] local owner = smartshop.user[pname][2] if not pos then -- cgit v1.2.3