bounds check

This commit is contained in:
dfsek
2022-06-09 14:44:21 -07:00
parent 6434b6b213
commit 81023e1d67

View File

@@ -70,6 +70,7 @@ public class Column<T extends WritableWorld> {
}
public Column<T> clamp(int min, int max) {
if(min >= max) throw new IllegalArgumentException("Min greater than or equal to max: " + min + ", " + max);
return new Column<>(x, z, world, min, max);
}