summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-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