support for v0.4.16 and v0.4.17.1

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

@ -121,7 +121,7 @@ minetest.register_node("tubelib: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