summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-12-03 21:57:53 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-12-03 21:57:53 +0100
commit835571054346bd21f22aa1414be5913aa67a98b0 (patch)
treee14d3998aa243844dd706c3f1559328c7ab8d008
parent043a9d3e738ad9162925e02ff489900c0d56361f (diff)
downloadsmartshop-835571054346bd21f22aa1414be5913aa67a98b0.tar.gz
smartshop-835571054346bd21f22aa1414be5913aa67a98b0.tar.bz2
smartshop-835571054346bd21f22aa1414be5913aa67a98b0.zip
dirty fix for weird bug
-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")