Use world min/max heights if present in QueueCoordinator

This commit is contained in:
dordsor21 2022-02-07 00:03:16 +00:00 committed by Jordan
parent 852c180bbd
commit c4db968830

View File

@ -79,8 +79,11 @@ public abstract class QueueCoordinator {
*/ */
@Deprecated(forRemoval = true, since = "TODO") @Deprecated(forRemoval = true, since = "TODO")
public ScopedQueueCoordinator getForChunk(int x, int z) { public ScopedQueueCoordinator getForChunk(int x, int z) {
if (getWorld() == null) {
return getForChunk(x, z, 0, 255); return getForChunk(x, z, 0, 255);
} }
return getForChunk(x, z, getWorld().getMinY(), getWorld().getMaxY());
}
/** /**
* Get a {@link ScopedQueueCoordinator} limited to the chunk at the specific chunk Coordinates * Get a {@link ScopedQueueCoordinator} limited to the chunk at the specific chunk Coordinates