From 82a0f5a11f79e475f35d0b1f6894a3a80416a818 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Fri, 16 Apr 2021 17:55:10 +0200 Subject: [PATCH] Fix occasional light gen issues for neighbor blocks (#5500) Co-authored-by: Spottedleaf --- Spigot-Server-Patches/Optimize-Light-Engine.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Optimize-Light-Engine.patch b/Spigot-Server-Patches/Optimize-Light-Engine.patch index eb8218521..ae6a62bc9 100644 --- a/Spigot-Server-Patches/Optimize-Light-Engine.patch +++ b/Spigot-Server-Patches/Optimize-Light-Engine.patch @@ -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);