fix crash when path length is exactly 30
This commit is contained in:
parent
87dbf1dbba
commit
245b2483ab
@ -47,7 +47,7 @@ public abstract class PathBase implements IPath {
|
||||
return this;
|
||||
}
|
||||
double factor = BaritoneAPI.getSettings().pathCutoffFactor.get();
|
||||
int newLength = (int) ((length() - 1 - min) * factor) + min;
|
||||
int newLength = (int) ((length() - min) * factor) + min - 1;
|
||||
return new CutoffPath(this, newLength);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user