index increment bugfix

This commit is contained in:
Baipyrus 2023-10-29 14:39:34 +01:00
parent 3b698ed454
commit a2d96928b7

View File

@ -140,7 +140,7 @@ function get_messages(buffer)
system.timeout = true
return
elseif event == 'monitor_touch' then
system.index = (system.index + 1) % #system.components + 1
system.index = system.index % #system.components + 1
break
end
end