From d9fd360882529253e261fedd32abbcfe3ef5facd Mon Sep 17 00:00:00 2001
From: cheapie <no-email-for-you@example.com>
Date: Sat, 28 Mar 2020 18:31:59 -0500
Subject: Fix crash when clicking air with a card

---
 cardreader.lua | 1 +
 1 file changed, 1 insertion(+)

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")
-- 
cgit v1.2.3