Readd fix to copied code

This commit is contained in:
mastermc05 2022-07-07 16:21:22 +03:00
parent 17e60cff40
commit b933f6b21c
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class AsyncChunkProvider118_2 {
public synchronized Supplier<NBTTagCompound> getLoadedChunk(CraftWorld world, int x, int z) {
if (!world.isChunkLoaded(x, z)) return () -> null;
Chunk c = world.getHandle().getChunkIfLoaded(x, z); //already safe async on vanilla
if ((c == null) || c.o) return () -> null; // c.loaded
if ((c == null) || !c.o) return () -> null; // c.loaded
if (currTick != MinecraftServer.currentTick) {
currTick = MinecraftServer.currentTick;
currChunks = 0;

View File

@ -85,7 +85,7 @@ public class AsyncChunkProvider119 {
public synchronized Supplier<NBTTagCompound> getLoadedChunk(CraftWorld world, int x, int z) {
if (!world.isChunkLoaded(x, z)) return () -> null;
Chunk c = world.getHandle().getChunkIfLoaded(x, z); //already safe async on vanilla
if ((c == null) || c.o) return () -> null; // c.loaded
if ((c == null) || !c.o) return () -> null; // c.loaded
if (currTick != MinecraftServer.currentTick) {
currTick = MinecraftServer.currentTick;
currChunks = 0;