Fix some runtime issues
This commit is contained in:
@@ -792,7 +792,7 @@ index 4de927416b..4c1c914132 100644
|
||||
this.methodProfiler.exit();
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
index 755c0406e1..ee65b01f43 100644
|
||||
index 755c0406e1..5816c7bcc7 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||
@@ -0,0 +0,0 @@
|
||||
@@ -820,8 +820,11 @@ index 755c0406e1..ee65b01f43 100644
|
||||
+ PlayerChunk neighborPlayer = getUpdatingChunk(ChunkCoordIntPair.pair(currentChunkPair.x + x, currentChunkPair.z + z));
|
||||
+ if (neighborPlayer != null) {
|
||||
+ Chunk neighbor = neighborPlayer.getChunk();
|
||||
+ neighbor.setNeighborLoaded(-x, -z);
|
||||
+ playerchunk.getChunk().setNeighborLoaded(x, z);
|
||||
+ Chunk player = playerchunk.getChunk();
|
||||
+ if (neighbor != null && player != null) {
|
||||
+ neighbor.setNeighborLoaded(-x, -z);
|
||||
+ player.setNeighborLoaded(x, z);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
@@ -882,6 +885,11 @@ index 755c0406e1..ee65b01f43 100644
|
||||
while (objectiterator.hasNext()) {
|
||||
playerchunkmap_entitytracker = (PlayerChunkMap.EntityTracker) objectiterator.next();
|
||||
playerchunkmap_entitytracker.track(list);
|
||||
}
|
||||
+ world.timings.tracker2.stopTiming(); // Paper
|
||||
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 78a090ac75..e07f4a9680 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
|
||||
Reference in New Issue
Block a user