mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Update Bukkit/src/main/java/com/plotsquared/bukkit/queue/BukkitQueueCoordinator.java
Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com>
This commit is contained in:
parent
9f3507ea85
commit
6aa3f7c1b7
@ -269,8 +269,8 @@ public class BukkitQueueCoordinator extends BasicQueueCoordinator {
|
||||
BlockData blockData = BukkitAdapter.adapt(block);
|
||||
Block existing;
|
||||
// Assume a chunk object has been given only when it should have been.
|
||||
if (getChunkObject() instanceof Chunk) {
|
||||
existing = ((Chunk) getChunkObject()).getBlock(x & 15, y, z & 15);
|
||||
if (getChunkObject() instanceof Chunk chunkObject) {
|
||||
existing = chunkObject.getBlock(x & 15, y, z & 15);
|
||||
} else {
|
||||
existing = getBukkitWorld().getBlockAt(x, y, z);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user