It compiles
This commit is contained in:
@@ -3057,7 +3057,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return x & 3 | ((z & 3) << 2);
|
||||
+ }
|
||||
+
|
||||
+ void addLoadedChunk(Chunk chunk) {
|
||||
+ public void addLoadedChunk(Chunk chunk) {
|
||||
+ this.loadedChunkMapSeqLock.acquireWrite();
|
||||
+ try {
|
||||
+ this.loadedChunkMap.put(chunk.coordinateKey, chunk);
|
||||
@@ -3072,7 +3072,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ this.lastLoadedChunks[cacheKey] = chunk;
|
||||
+ }
|
||||
+
|
||||
+ void removeLoadedChunk(Chunk chunk) {
|
||||
+ public void removeLoadedChunk(Chunk chunk) {
|
||||
+ this.loadedChunkMapSeqLock.acquireWrite();
|
||||
+ try {
|
||||
+ this.loadedChunkMap.remove(chunk.coordinateKey);
|
||||
@@ -3893,6 +3893,14 @@ diff --git a/src/main/java/net/minecraft/world/level/ChunkCache.java b/src/main/
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/ChunkCache.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/ChunkCache.java
|
||||
@@ -0,0 +0,0 @@ import java.util.function.Predicate;
|
||||
import java.util.stream.Stream;
|
||||
import javax.annotation.Nullable;
|
||||
import net.minecraft.core.BlockPosition;
|
||||
+import net.minecraft.server.level.WorldServer;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.block.entity.TileEntity;
|
||||
@@ -0,0 +0,0 @@ public class ChunkCache implements IBlockAccess, ICollisionAccess {
|
||||
protected final int b;
|
||||
protected final IChunkAccess[][] c;
|
||||
|
||||
Reference in New Issue
Block a user