From c6afb4a173a8e50ecfd3efaad739f3ed48226f9f Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 9 Dec 2022 21:17:21 +0100 Subject: [PATCH] Remove EOL blanks --- logic/button.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/button.lua b/logic/button.lua index e677b29..7efc19d 100644 --- a/logic/button.lua +++ b/logic/button.lua @@ -87,7 +87,7 @@ local function switch_off(pos, is_button) logic.swap_node(pos, "techage:ta4_button_off") end local meta = M(pos) - if meta:get_string("off_command") ~= "true" and + if meta:get_string("off_command") ~= "true" and (not meta:contains("command") or meta:get_string("command") == "on") then logic.send_off(pos, M(pos)) end @@ -117,7 +117,7 @@ local function store_fields_data(pos, fields) local meta = M(pos) meta:set_string("numbers", fields.numbers) meta:set_string("off_command", "") - + if fields.access == "protected" then meta:set_string("protected", "true") meta:set_string("public", "")