fixed range toString crash

% instead of /mod
151
This commit is contained in:
zeroflag 2022-02-14 13:12:06 +01:00
parent 6c8e2eeef9
commit 9019abff9b

View file

@ -67,8 +67,8 @@ public class Range implements Obj {
@Override
public String toString() {
return by.doubleValue() == 1
? String.format("%d..%d (%d)", from, to, current)
: String.format("%d...%d (%d) by %d", from, to, current, by);
? String.format("%s..%s (%s)", from, to, current)
: String.format("%s...%s (%s) by %s", from, to, current, by);
}
@Override