summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 7db558d..e4d297f 100644
--- a/init.lua
+++ b/init.lua
@@ -145,6 +145,9 @@ end)
smartshop.update_info=function(pos)
+ if not pos then
+ return
+ end
local meta=minetest.get_meta(pos)
local inv = meta:get_inventory()
local owner=meta:get_string("owner")