Commits
DerFrZocker authored and md_5 committed 15f27fc710e
1 + | --- a/net/minecraft/world/level/chunk/storage/EntityStorage.java |
2 + | +++ b/net/minecraft/world/level/chunk/storage/EntityStorage.java |
3 + | |
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 + | |
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); |