mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +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);
|
BlockData blockData = BukkitAdapter.adapt(block);
|
||||||
Block existing;
|
Block existing;
|
||||||
// Assume a chunk object has been given only when it should have been.
|
// Assume a chunk object has been given only when it should have been.
|
||||||
if (getChunkObject() instanceof Chunk) {
|
if (getChunkObject() instanceof Chunk chunkObject) {
|
||||||
existing = ((Chunk) getChunkObject()).getBlock(x & 15, y, z & 15);
|
existing = chunkObject.getBlock(x & 15, y, z & 15);
|
||||||
} else {
|
} else {
|
||||||
existing = getBukkitWorld().getBlockAt(x, y, z);
|
existing = getBukkitWorld().getBlockAt(x, y, z);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user