support for v0.4.16 and v0.4.17.1

This commit is contained in:
Joachim Stolberg 2018-09-18 12:48:34 +02:00 committed by GitHub
parent d020a8847e
commit e376b77c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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