mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix occasional light gen issues for neighbor blocks (#5500)
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
This commit is contained in:
parent
bff926de51
commit
82a0f5a11f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue