Add explanatory comment

This commit is contained in:
Jude Melton-Houghton 2022-01-27 10:35:59 -05:00
parent 64c104b68d
commit a8aeab965c
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ mesecon.on_placenode = function(pos, node)
if mesecon.is_conductor(node.name) then
local conductor = mesecon.get_conductor(node.name)
if conductor.state ~= mesecon.state.off then
-- Turn the conductor off.
node.name = conductor.offstate or conductor.states[1]
minetest.swap_node(pos, node)
end