Revert a change made to getChunkFuture for isUnloading
Talked with leaf on it and understand what its going now even though it was a hack fix by Spigot, but seems ok. I had orig made this change thinking it was the source of another issue but that came out to not be true. Fixes #3573
This commit is contained in:
@@ -462,11 +462,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
ichunkaccess = (IChunkAccess) ((Either) completablefuture.join()).map((ichunkaccess1) -> {
|
ichunkaccess = (IChunkAccess) ((Either) completablefuture.join()).map((ichunkaccess1) -> {
|
||||||
return ichunkaccess1;
|
return ichunkaccess1;
|
||||||
@@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider {
|
@@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider {
|
||||||
PlayerChunk.State currentChunkState = PlayerChunk.getChunkState(playerchunk.getTicketLevel());
|
if (flag && !currentlyUnloading) {
|
||||||
currentlyUnloading = (oldChunkState.isAtLeast(PlayerChunk.State.BORDER) && !currentChunkState.isAtLeast(PlayerChunk.State.BORDER));
|
|
||||||
}
|
|
||||||
- if (flag && !currentlyUnloading) {
|
|
||||||
+ if (flag) { // Paper - don't care about unloading state
|
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
this.chunkMapDistance.a(TicketType.UNKNOWN, chunkcoordintpair, l, chunkcoordintpair);
|
this.chunkMapDistance.a(TicketType.UNKNOWN, chunkcoordintpair, l, chunkcoordintpair);
|
||||||
+ if (isUrgent) this.chunkMapDistance.markUrgent(chunkcoordintpair); // Paper
|
+ if (isUrgent) this.chunkMapDistance.markUrgent(chunkcoordintpair); // Paper
|
||||||
@@ -494,11 +490,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean a(@Nullable PlayerChunk playerchunk, int i) {
|
private boolean a(@Nullable PlayerChunk playerchunk, int i) {
|
||||||
- return playerchunk == null || playerchunk.oldTicketLevel > i; // CraftBukkit using oldTicketLevel for isLoaded checks
|
|
||||||
+ return playerchunk == null || playerchunk.getTicketLevel() > i; // CraftBukkit using oldTicketLevel for isLoaded checks - Paper - keep vanilla check
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isLoaded(int i, int j) {
|
|
||||||
@@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider {
|
@@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider {
|
||||||
return this.serverThreadQueue.executeNext();
|
return this.serverThreadQueue.executeNext();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user