1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Hopefully fizes #1098 in a better way.

This commit is contained in:
LinoxGH 2019-09-08 17:20:12 +03:00 committed by GitHub
parent 643cfadaf4
commit a00d2c9f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ public class RainbowTicker extends BlockTicker {
@Override
public void uniqueTick() {
index = ((index == queue[queue.length - 1]) ? 0: index + 1);
index = ((index >= queue.length - 1) ? 0: index + 1);
meta = queue[index];
}