From c4db9688301eddcf202a9a612d15656a3c36f429 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 7 Feb 2022 00:03:16 +0000 Subject: [PATCH] Use world min/max heights if present in QueueCoordinator --- .../java/com/plotsquared/core/queue/QueueCoordinator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/queue/QueueCoordinator.java b/Core/src/main/java/com/plotsquared/core/queue/QueueCoordinator.java index 9cc130690..35e7eb7ac 100644 --- a/Core/src/main/java/com/plotsquared/core/queue/QueueCoordinator.java +++ b/Core/src/main/java/com/plotsquared/core/queue/QueueCoordinator.java @@ -79,7 +79,10 @@ public abstract class QueueCoordinator { */ @Deprecated(forRemoval = true, since = "TODO") public ScopedQueueCoordinator getForChunk(int x, int z) { - return getForChunk(x, z, 0, 255); + if (getWorld() == null) { + return getForChunk(x, z, 0, 255); + } + return getForChunk(x, z, getWorld().getMinY(), getWorld().getMaxY()); } /**