mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-22 08:41:02 +00:00
Change ConstantRage check to only check if greater than
This commit is contained in:
@@ -18,7 +18,7 @@ public class ConstantRange implements Range {
|
|||||||
private int max;
|
private int max;
|
||||||
|
|
||||||
public ConstantRange(int min, int max) {
|
public ConstantRange(int min, int max) {
|
||||||
if(min >= max) throw new IllegalArgumentException("Minimum must not be greater than or equal to maximum!");
|
if(min > max) throw new IllegalArgumentException("Minimum must not be greater than maximum!");
|
||||||
this.max = max;
|
this.max = max;
|
||||||
this.min = min;
|
this.min = min;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user