added antiGrief inhabited chunk time calculation

This commit is contained in:
2025-09-27 07:42:13 +02:00
parent 16d7347fd0
commit d7cc141b94
2 changed files with 27 additions and 4 deletions

View File

@@ -8,4 +8,10 @@ public class NumberUtil {
return out;
}
public static <T extends Comparable<T>> T clamp(T value, T min, T max) {
if (value.compareTo(min) < 0) return min;
if (value.compareTo(max) > 0) return max;
return value;
}
}