From b8a0f1cbb7a063e460bab1a8fe45ce40623d022f Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 17 Aug 2018 11:03:07 -0400 Subject: [PATCH] fix getindex --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 7187364..39bc9ac 100644 --- a/init.lua +++ b/init.lua @@ -205,8 +205,8 @@ local on_digiline_receive_string = function(pos, node, channel, msg) digiline:receptor_send(pos, digiline.rules.default, channel, tonumber(string.match(minetest.get_node(pos).name,"led_marquee:char_(.+)"))) -- wonderfully horrible string manipulaiton elseif msg == "getstr" then -- get the last stored message digiline:receptor_send(pos, digiline.rules.default, channel, meta:get_string("last_msg")) - elseif msg == "getindex" then -- get the last stored message - digiline:receptor_send(pos, digiline.rules.default, channel, meta:get_string("index")) + elseif msg == "getindex" then -- get the scroll index + digiline:receptor_send(pos, digiline.rules.default, channel, meta:get_int("index")) else led_marquee.set_timer(pos, 0) meta:set_string("last_msg", msg)