summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cardreader.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/cardreader.lua b/cardreader.lua
index 06a3235..3279e90 100644
--- a/cardreader.lua
+++ b/cardreader.lua
@@ -19,6 +19,7 @@ minetest.register_craftitem("digistuff:card",{
stack_max = 1,
on_use = function(stack,_,pointed)
local pos = pointed.under
+ if not pos then return end
if minetest.get_node(pos).name ~= "digistuff:card_reader" then return end
local meta = minetest.get_meta(pos)
local channel = meta:get_string("channel")