mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 14:56:28 +00:00
bounds check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user