mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-16 07:10:32 +01:00
Restore unnecessarily changed variable
This commit is contained in:
parent
6f6f62fa63
commit
cd835345ea
|
@ -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"})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user