diff --git a/releasenotes.md b/releasenotes.md index b9e851a..23b3beb 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -1,6 +1,13 @@ # Release Notes of the ModPack TechPack [techpack] +## V1.15.1 (2018-09-17) + +### Fixes +- Button bug (detected in the video of Nathan) fixed + + + ## V1.15 (2018-09-15) ### Additions diff --git a/smartline/button.lua b/smartline/button.lua index c1f434f..97739e4 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") ~= "" then meta:set_string("clicker_name", clicker:get_player_name()) switch_on(pos, node) end diff --git a/tubelib/button.lua b/tubelib/button.lua index 548142c..78d8a59 100644 --- a/tubelib/button.lua +++ b/tubelib/button.lua @@ -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") ~= "" then meta:set_string("clicker_name", clicker:get_player_name()) switch_on(pos, node) end