mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Fix off-by-one in async lighting neighbor loop
This commit is contained in:
parent
bc9a97a7a3
commit
fc9503b08d
@ -157,8 +157,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ chunk.lightUpdateTime = chunk.world.getTime();
|
||||
+
|
||||
+ final List<Chunk> neighbors = new ArrayList<Chunk>();
|
||||
+ for (int cx = (x >> 4) - 1; cx < (x >> 4) + 1; ++cx) {
|
||||
+ for (int cz = (z >> 4) - 1; cz < (z >> 4) + 1; ++cz) {
|
||||
+ for (int cx = (x >> 4) - 1; cx <= (x >> 4) + 1; ++cx) {
|
||||
+ for (int cz = (z >> 4) - 1; cz <= (z >> 4) + 1; ++cz) {
|
||||
+ if (this.chunkProvider.isChunkLoaded(cx, cz)) {
|
||||
+ Chunk neighbor = this.getChunkAt(cx, cz);
|
||||
+ if (neighbor != chunk) {
|
||||
|
Loading…
Reference in New Issue
Block a user