added antiGrief inhabited chunk time calculation
This commit is contained in:
1 parent
16d7347fd0
commit
d7cc141b94
2 files changed
+27
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user