From 053ee765c001c203c4e2bd6aa3e44932e1766582 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 16 Aug 2018 23:45:06 -0400 Subject: [PATCH] drop support for "off", "colon", "period", "del", "all_on" and "cursor" keywords (use the actuall ascii chars instead, they do the same thing anyways, but can be part of a string) --- init.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/init.lua b/init.lua index 4a0dc86..fac0cc8 100644 --- a/init.lua +++ b/init.lua @@ -177,18 +177,6 @@ local on_digiline_receive_string = function(pos, node, channel, msg) if msg and msg ~= "" and type(msg) == "string" then led_marquee.set_timer(pos, 0) if string.len(msg) > 1 then - if msg == "off" then - minetest.swap_node(pos, { name = "led_marquee:char_32", param2 = fdir + (last_color*8)}) - elseif msg == "colon" then - minetest.swap_node(pos, { name = "led_marquee:char_58", param2 = fdir + (last_color*8)}) - elseif msg == "period" then - minetest.swap_node(pos, { name = "led_marquee:char_46", param2 = fdir + (last_color*8)}) - elseif msg == "del" then - minetest.swap_node(pos, { name = "led_marquee:char_127", param2 = fdir + (last_color*8)}) - elseif msg == "allon" then - minetest.swap_node(pos, { name = "led_marquee:char_144", param2 = fdir + (last_color*8)}) - elseif msg == "cursor" then - minetest.swap_node(pos, { name = "led_marquee:char_31", param2 = fdir + (last_color*8)}) elseif msg == "off_multi" or msg == "clear" then msg = string.rep(" ", 1024) meta:set_string("last_msg", msg)