mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
actually fix rangeloader
This commit is contained in:
parent
eb8bafe5d8
commit
77ba13ce93
@ -38,7 +38,7 @@ public class ConstantRange implements Range {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int get(Random r) {
|
public int get(Random r) {
|
||||||
return r.nextInt((max - min) + 1) + min;
|
return r.nextInt(min, max);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -40,7 +40,7 @@ public class RangeLoader implements TypeLoader<Range> {
|
|||||||
return new ConstantRange(map.get("min"), map.get("max"));
|
return new ConstantRange(map.get("min"), map.get("max"));
|
||||||
} else {
|
} else {
|
||||||
int h = configLoader.loadType(Integer.class, o, depthTracker);
|
int h = configLoader.loadType(Integer.class, o, depthTracker);
|
||||||
return new ConstantRange(h, h);
|
return new ConstantRange(h, h + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user