mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed empty gap on race sliders
This commit is contained in:
parent
83b4953bba
commit
8483f74286
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue