Commits

DerFrZocker authored and md_5 committed 15f27fc710e
SPIGOT-6547: Chunk#getEntities() doesn't return all entities immediately after chunk load
No tags

nms-patches/net/minecraft/world/level/chunk/storage/EntityStorage.patch

Added
1 +--- a/net/minecraft/world/level/chunk/storage/EntityStorage.java
2 ++++ b/net/minecraft/world/level/chunk/storage/EntityStorage.java
3 +@@ -33,7 +33,7 @@
4 + private static final Logger LOGGER = LogManager.getLogger();
5 + private static final String ENTITIES_TAG = "Entities";
6 + private static final String POSITION_TAG = "Position";
7 +- private final WorldServer level;
8 ++ public final WorldServer level; // PAIL private -> public
9 + private final IOWorker worker;
10 + private final LongSet emptyChunks = new LongOpenHashSet();
11 + private final ThreadedMailbox<Runnable> entityDeserializerQueue;
12 +@@ -51,8 +51,8 @@
13 + if (this.emptyChunks.contains(chunkcoordintpair.pair())) {
14 + return CompletableFuture.completedFuture(b(chunkcoordintpair));
15 + } else {
16 +- CompletableFuture completablefuture = this.worker.b(chunkcoordintpair);
17 +- Function function = (nbttagcompound) -> {
18 ++ CompletableFuture<NBTTagCompound> completablefuture = this.worker.b(chunkcoordintpair); // CraftBukkit - decompile error
19 ++ Function<NBTTagCompound, ChunkEntities<Entity>> function = (nbttagcompound) -> { // CraftBukkit - decompile error
20 + if (nbttagcompound == null) {
21 + this.emptyChunks.add(chunkcoordintpair.pair());
22 + return b(chunkcoordintpair);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut