This commit is contained in:
Jesse Boyd 2017-08-29 00:09:39 +10:00
parent 0ebc73d17f
commit 583def4617
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -265,6 +265,16 @@ public class NMSRelighter implements Relighter {
try {
if (sky) {
fixSkyLighting();
} else {
synchronized (this) {
Map<Long, RelightSkyEntry> map = getSkyMap();
Iterator<Map.Entry<Long, RelightSkyEntry>> iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry<Long, RelightSkyEntry> entry = iter.next();
chunksToSend.put(entry.getKey(), entry.getValue().bitmask);
iter.remove();
}
}
}
fixBlockLighting();
sendChunks();