mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-25 03:55:35 +01:00
Fix clipboard scroll with 1 entry
This commit is contained in:
parent
c325f0745c
commit
e7e833789a
@ -44,9 +44,12 @@ public class MathMan {
|
||||
};
|
||||
|
||||
public static final int wrap(int value, int min, int max) {
|
||||
if (max <= min) {
|
||||
if (max < min) {
|
||||
return value;
|
||||
}
|
||||
if (min == max) {
|
||||
return min;
|
||||
}
|
||||
int diff = max - min + 1;
|
||||
if (value < min) {
|
||||
return max - ((min - value) % diff);
|
||||
|
Loading…
Reference in New Issue
Block a user