From 932b7d1a4e633faef9564d187734b804b9eeb0a6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 16 Jul 2023 14:47:16 +0100 Subject: [PATCH] fix: add missing method in UncheckedWorldLocation - Allows single plot worlds to be generated --- .../core/location/UncheckedWorldLocation.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java index 38183269b..3cf31b0e8 100644 --- a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java +++ b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java @@ -60,6 +60,19 @@ public final class UncheckedWorldLocation extends Location { return new UncheckedWorldLocation(world, x, y, z); } + /** + * Construct a new location with yaw and pitch equal to 0 + * + * @param world World + * @param loc Coordinates + * @return New location + * @since 6.9.0 + */ + @DoNotUse + public static @NonNull UncheckedWorldLocation at(final @NonNull String world, BlockVector3 loc) { + return new UncheckedWorldLocation(world, loc.getX(), loc.getY(), loc.getZ()); + } + @Override @DoNotUse public @NonNull String getWorldName() {