Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Add missing patch from NachoSpigot
Browse files Browse the repository at this point in the history
  • Loading branch information
windcolor-dev committed Sep 30, 2023
1 parent c21c42d commit f7d3171
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.longs.LongArraySet;
import it.unimi.dsi.fastutil.longs.LongIterator;
import it.unimi.dsi.fastutil.longs.LongOpenHashSet;
import it.unimi.dsi.fastutil.longs.LongSet;

// TacoSpigot end
public class ChunkProviderServer implements IChunkProvider {

private static final Logger b = LogManager.getLogger();
public LongSet unloadQueue = new LongArraySet(); // CraftBukkit - LongHashSet // TacoSpigot - LongHashSet ->
// HashArraySet
public LongSet unloadQueue = new LongOpenHashSet(); // CraftBukkit - LongHashSet // TacoSpigot - LongHashSet ->
// HashArraySet // Nacho - LongHashSet -> LongOpenHashSet
public Chunk emptyChunk;
public IChunkProvider chunkProvider;
// FlamePaper - Make chunkLoader public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,8 @@ public int c(BlockPosition blockposition, boolean flag) {
blockposition = new BlockPosition(blockposition.getX(), 255, blockposition.getZ());
}

if (!this.isLoaded(blockposition)) return 0; // Paper

Chunk chunk = this.getChunkAtWorldCoords(blockposition);

return chunk.a(blockposition, this.I);
Expand Down

0 comments on commit f7d3171

Please sign in to comment.