Remove EOL blanks
This commit is contained in:
parent
446de79704
commit
c6afb4a173
@ -87,7 +87,7 @@ local function switch_off(pos, is_button)
|
|||||||
logic.swap_node(pos, "techage:ta4_button_off")
|
logic.swap_node(pos, "techage:ta4_button_off")
|
||||||
end
|
end
|
||||||
local meta = M(pos)
|
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
|
(not meta:contains("command") or meta:get_string("command") == "on") then
|
||||||
logic.send_off(pos, M(pos))
|
logic.send_off(pos, M(pos))
|
||||||
end
|
end
|
||||||
@ -117,7 +117,7 @@ local function store_fields_data(pos, fields)
|
|||||||
local meta = M(pos)
|
local meta = M(pos)
|
||||||
meta:set_string("numbers", fields.numbers)
|
meta:set_string("numbers", fields.numbers)
|
||||||
meta:set_string("off_command", "")
|
meta:set_string("off_command", "")
|
||||||
|
|
||||||
if fields.access == "protected" then
|
if fields.access == "protected" then
|
||||||
meta:set_string("protected", "true")
|
meta:set_string("protected", "true")
|
||||||
meta:set_string("public", "")
|
meta:set_string("public", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user