Fixed empty gap on race sliders

This commit is contained in:
Sollace 2022-10-12 15:45:07 +02:00
parent 83b4953bba
commit 8483f74286

View file

@ -17,7 +17,7 @@ public class RegistryIndexer<T> {
} }
public int size() { public int size() {
return values.size(); return values.size() - 1;
} }
public int indexOf(T value) { public int indexOf(T value) {
@ -45,7 +45,7 @@ public class RegistryIndexer<T> {
} }
private int wrapIndex(int index) { private int wrapIndex(int index) {
int sz = size(); int sz = values.size();
while (index < 0) { while (index < 0) {
index += sz; index += sz;
} }