mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 21:56:45 +01:00
Use version min/max heights if world not present in QueueCoordinator
This commit is contained in:
parent
7c48fe198d
commit
bbe31379e8
@ -80,7 +80,7 @@ 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) {
|
if (getWorld() == null) {
|
||||||
return getForChunk(x, z, 0, 255);
|
return getForChunk(x, z, PlotSquared.platform().versionMinHeight(), PlotSquared.platform().versionMaxHeight());
|
||||||
}
|
}
|
||||||
return getForChunk(x, z, getWorld().getMinY(), getWorld().getMaxY());
|
return getForChunk(x, z, getWorld().getMinY(), getWorld().getMaxY());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user