mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Fix crash relating to "Already sent chunk"
Forgot to update the distandce field in the single user area map on update, and additionally used the wrong radius (introduced last commit) for the broadcast map
This commit is contained in:
@@ -3205,7 +3205,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ this.player.connection.send(this.updateClientSimulationDistance(tickViewDistance));
|
||||
+
|
||||
+ // add to distance maps
|
||||
+ this.broadcastMap.add(chunkX, chunkZ, sendViewDistance);
|
||||
+ this.broadcastMap.add(chunkX, chunkZ, sendViewDistance + 1);
|
||||
+ this.loadTicketCleanup.add(chunkX, chunkZ, loadViewDistance + 1);
|
||||
+ this.tickMap.add(chunkX, chunkZ, tickViewDistance);
|
||||
+
|
||||
@@ -3270,7 +3270,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+
|
||||
+ // update distance maps
|
||||
+ this.broadcastMap.update(currentChunkX, currentChunkZ, sendViewDistance);
|
||||
+ this.broadcastMap.update(currentChunkX, currentChunkZ, sendViewDistance + 1);
|
||||
+ this.loadTicketCleanup.update(currentChunkX, currentChunkZ, loadViewDistance + 1);
|
||||
+ this.tickMap.update(currentChunkX, currentChunkZ, tickViewDistance);
|
||||
+ if (sendViewDistance > loadViewDistance || tickViewDistance > loadViewDistance) {
|
||||
@@ -3521,6 +3521,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ this.lastChunkX = toX;
|
||||
+ this.lastChunkZ = toZ;
|
||||
+ this.distance = newViewDistance;
|
||||
+
|
||||
+ final T parameter = this.parameter;
|
||||
+
|
||||
|
Reference in New Issue
Block a user