summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cardreader.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/cardreader.lua b/cardreader.lua
index 31ff7e4..06a3235 100644
--- a/cardreader.lua
+++ b/cardreader.lua
@@ -89,7 +89,7 @@ minetest.register_node("digistuff:card_reader",{
meta:set_int("writepending",1)
if type(msg.data) ~= "string" then msg.data = tostring(msg.data) end
meta:set_string("writedata",string.sub(msg.data,1,256))
- if type(msg.description == "string") then
+ if type(msg.description) == "string" then
meta:set_string("writedescription",string.sub(msg.description,1,64))
else
meta:set_string("writedescription","no name")