Remove EOL blanks

This commit is contained in:
Joachim Stolberg 2022-12-09 21:17:21 +01:00
parent 446de79704
commit c6afb4a173

View File

@ -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", "")