geforkt von Mirrors/Paper
Fix light propagation in high y sections
Dieser Commit ist enthalten in:
Ursprung
6d4c9bd717
Commit
df9844576b
@ -1757,7 +1757,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ final int chunkX = (index % 5) - this.chunkOffsetX;
|
||||
+ final int chunkZ = ((index / 5) % 5) - this.chunkOffsetZ;
|
||||
+ final int chunkY = ((index / (5*5)) % (16 + 2 + 2)) - this.chunkOffsetY;
|
||||
+ final int ySections = (this.maxSection - this.minSection) + 1;
|
||||
+ final int chunkY = ((index / (5*5)) % (ySections + 2 + 2)) - this.chunkOffsetY;
|
||||
+ if ((nibble != null && nibble.updateVisible()) || this.notifyUpdateCache[index]) {
|
||||
+ lightAccess.onLightUpdate(this.skylightPropagator ? LightLayer.SKY : LightLayer.BLOCK, SectionPos.of(chunkX, chunkY, chunkZ));
|
||||
+ }
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren