index bugfix

This commit is contained in:
Baipyrus 2023-10-29 13:05:27 +01:00
parent 4cbce29169
commit 2369d06d94

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
system.index = (system.index + 1) % #system.components + 1
return
end
end