actually fix rangeloader

This commit is contained in:
dfsek 2022-05-29 23:44:43 -07:00
parent eb8bafe5d8
commit 77ba13ce93
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class ConstantRange implements Range {
@Override
public int get(Random r) {
return r.nextInt((max - min) + 1) + min;
return r.nextInt(min, max);
}
@Override

View File

@ -40,7 +40,7 @@ public class RangeLoader implements TypeLoader<Range> {
return new ConstantRange(map.get("min"), map.get("max"));
} else {
int h = configLoader.loadType(Integer.class, o, depthTracker);
return new ConstantRange(h, h);
return new ConstantRange(h, h + 1);
}
}
}