Fix broken goto in Luanti (Formerly Minetest) 5.10.0
This commit is contained in:
parent
dc44cb18e4
commit
03f4ea3b0e
@ -56,15 +56,11 @@ PyuTest.make_wire = function(id, desc, groups, color, opts, texture, delay)
|
||||
local n = minetest.get_node(v)
|
||||
|
||||
-- To prevent infinite loops
|
||||
if v == sender_pos then
|
||||
goto continue
|
||||
if v ~= sender_pos then
|
||||
minetest.after(del, function()
|
||||
PyuTest.electricity_activate(v, n, pos)
|
||||
end)
|
||||
end
|
||||
|
||||
minetest.after(del, function()
|
||||
PyuTest.electricity_activate(v, n, pos)
|
||||
end)
|
||||
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user