Use correct trustEdges value

This commit is contained in:
dordsor21 2020-09-11 17:24:02 +01:00
parent 7baaed946e
commit a8f53d6414
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -201,7 +201,7 @@ public final class BukkitAdapter_1_16_2 extends NMSAdapter {
if (lighting) {
// ChunkCoordIntPair chunkCoordIntPair = new ChunkCoordIntPair(chunkX, chunkZ);
boolean trustEdges = false; //Added in 1.16.1 Not sure what it does.
boolean trustEdges = true; //This needs to be true otherwise Minecraft will update lighting from/at the chunk edges (bad)
PacketPlayOutLightUpdate packet = new PacketPlayOutLightUpdate(chunkCoordIntPair, nmsWorld.getChunkProvider().getLightEngine(), trustEdges);
playerChunk.players.a(chunkCoordIntPair, false).forEach(p -> {
p.playerConnection.sendPacket(packet);