2018-07-15 02:00:00 +02:00
|
|
|
--- a/net/minecraft/server/ChunkMap.java
|
|
|
|
+++ b/net/minecraft/server/ChunkMap.java
|
2018-09-27 13:41:24 +02:00
|
|
|
@@ -31,6 +31,23 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-30 05:09:04 +02:00
|
|
|
+ // CraftBukkit start
|
2018-07-15 02:00:00 +02:00
|
|
|
+ // Update neighbor counts
|
|
|
|
+ for (int x = -2; x < 3; x++) {
|
|
|
|
+ for (int z = -2; z < 3; z++) {
|
|
|
|
+ if (x == 0 && z == 0) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Chunk neighbor = this.get(ChunkCoordIntPair.a(chunkcoordintpair.x + x, chunkcoordintpair.z + z));
|
|
|
|
+ if (neighbor != null) {
|
|
|
|
+ neighbor.setNeighborLoaded(-x, -z);
|
|
|
|
+ chunk.setNeighborLoaded(x, z);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
2018-07-30 05:09:04 +02:00
|
|
|
+ // CraftBukkit end
|
2018-07-15 02:00:00 +02:00
|
|
|
+
|
|
|
|
return chunk1;
|
|
|
|
}
|
|
|
|
|