command handler optimizations

This commit is contained in:
batchprogrammer314
2021-07-04 03:15:30 -05:00
parent e9aa334aee
commit 0f86796f96
6 changed files with 62 additions and 36 deletions

View File

@@ -36,4 +36,13 @@ public class MathUtils {
return new Vector(x, 0, z);
}
public static boolean isFinite(Vector vector) {
try {
vector.checkFinite();
return true;
} catch (IllegalArgumentException e) {
return false;
}
}
}