summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgpcf <gpcf@gpcf.eu>2024-09-26 17:26:15 +0200
committergpcf <gpcf@gpcf.eu>2024-09-26 17:26:15 +0200
commit0ca04bb40d13338b28a6d35b0809508075c692cb (patch)
tree70f85a94f598cb79f1217bdfce45a2802f9bf80e
parent6fb06801e60a25d939920f53bf11453f84165c07 (diff)
downloadsmartshop-0ca04bb40d13338b28a6d35b0809508075c692cb.tar.gz
smartshop-0ca04bb40d13338b28a6d35b0809508075c692cb.tar.bz2
smartshop-0ca04bb40d13338b28a6d35b0809508075c692cb.zip
additional nil checkHEADmaster
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
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