From e376b77c4307ae7f5240cd5ef5a002942873fda9 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 18 Sep 2018 12:48:34 +0200 Subject: [PATCH] support for v0.4.16 and v0.4.17.1 --- smartline/button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartline/button.lua b/smartline/button.lua index 97739e4..d3afc31 100644 --- a/smartline/button.lua +++ b/smartline/button.lua @@ -129,7 +129,7 @@ minetest.register_node("smartline:button", { on_rightclick = function(pos, node, clicker) local meta = minetest.get_meta(pos) - if meta:get_string("numbers") ~= "" then + if meta:get_string("numbers") ~= "" and meta:get_string("numbers") ~= nil then meta:set_string("clicker_name", clicker:get_player_name()) switch_on(pos, node) end