Restore unnecessarily changed variable

This commit is contained in:
Jude Melton-Houghton 2022-02-07 16:59:15 -05:00
parent 6f6f62fa63
commit cd835345ea

View File

@ -22,7 +22,7 @@ local function pp_on_timer(pos)
minetest.set_node(pos, {name = basename .. "_off"}) minetest.set_node(pos, {name = basename .. "_off"})
mesecon.receptor_off(pos, mesecon.rules.pplate) mesecon.receptor_off(pos, mesecon.rules.pplate)
elseif node.name == basename .. "_off" then elseif node.name == basename .. "_off" then
for _, obj in pairs(objs) do for k, obj in pairs(objs) do
local objpos = obj:get_pos() local objpos = obj:get_pos()
if objpos.y > pos.y-1 and objpos.y < pos.y then if objpos.y > pos.y-1 and objpos.y < pos.y then
minetest.set_node(pos, {name = basename .. "_on"}) minetest.set_node(pos, {name = basename .. "_on"})