Skip to content

Commit

Permalink
Fixed another NoSuchMethodError when using 1.19.4 Spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Apr 7, 2023
1 parent 6d113b1 commit b3e8e9c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -365,7 +365,7 @@ public boolean isChunkEmpty(org.bukkit.Chunk bukkitChunk) {
public org.bukkit.Chunk getChunkIfLoaded(ChunkPosition chunkPosition) {
ServerLevel serverLevel = ((CraftWorld) chunkPosition.getWorld()).getHandle();
ChunkAccess chunkAccess = serverLevel.getChunkSource().getChunk(chunkPosition.getX(), chunkPosition.getZ(), false);
return chunkAccess instanceof LevelChunk levelChunk ? levelChunk.getBukkitChunk() : null;
return chunkAccess instanceof LevelChunk levelChunk ? new CraftChunk(levelChunk) : null;
}

@Override
Expand Down

0 comments on commit b3e8e9c

Please sign in to comment.