Fix occasional light gen issues for neighbor blocks (#5500)

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
This commit is contained in:
MiniDigger | Martin 2021-04-16 17:55:10 +02:00
parent bff926de51
commit 82a0f5a11f

View file

@ -551,7 +551,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- long j1 = BlockPosition.a(i, enumdirection);
- long k1 = SectionPosition.e(j1);
+ long j1 = BlockPosition.getAdjacent(x, y, z, enumdirection); // Paper
+ long k1 = SectionPosition.getAdjacentFromBlockPos(x, y, z, enumdirection); // Paper
+ long k1 = SectionPosition.blockToSection(j1); // Paper
if (k == k1 || ((LightEngineStorageBlock) this.c).g(k1)) {
this.b(i, j1, j, flag);