mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
Mark chunk as active if ChunkUnloadEvent is cancelled
Potentially related to GH-169
This commit is contained in:
parent
b6e39d3f5c
commit
9fe95d850e
@ -156,6 +156,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
if (neighbor != null) {
|
||||
neighbor.setNeighborUnloaded(-x, -z);
|
||||
chunk.setNeighborUnloaded(x, z);
|
||||
}
|
||||
}
|
||||
}
|
||||
+ // Paper start
|
||||
+ } else {
|
||||
+ // Unload event is cancelled, make sure this chunk is marked active
|
||||
+ markChunkActive(chunk);
|
||||
+ // Paper end
|
||||
}
|
||||
}
|
||||
// CraftBukkit end
|
||||
@@ -0,0 +0,0 @@ public class ChunkProviderServer implements IChunkProvider {
|
||||
public boolean e(int i, int j) {
|
||||
return this.chunks.containsKey(LongHash.toLong(i, j)); // CraftBukkit
|
||||
|
Loading…
Reference in New Issue
Block a user