This commit is contained in:
SirYwell 2024-03-07 18:38:03 +01:00
parent b51eec279f
commit 6e668cd862
No known key found for this signature in database

View File

@ -62,6 +62,11 @@ import java.util.zip.ZipOutputStream;
public abstract class WorldUtil {
/**
* {@return whether the given location is valid in the world}
* @param location the location to check
* @since TODO
*/
public static boolean isValidLocation(Location location) {
return Math.abs(location.getX()) < 30000000 && Math.abs(location.getZ()) < 30000000;
}