mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +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;
|
||||
|
||||
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.min = min;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user