Fix chunk leak issue with queued light updates

This commit is contained in:
Aikar
2016-05-13 01:34:37 -04:00
parent f623f903cd
commit b6d0dd32c6
3 changed files with 38 additions and 20 deletions

View File

@@ -122,7 +122,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ continue;
+ }
+
+ Chunk chunk = world.getChunkIfLoaded(x, z);
+ Chunk chunk = MCUtil.getLoadedChunkWithoutMarkingActive(world, x, z);
+ if (chunk != null && chunk.lightUpdates > 0) {
+ return true;
+ }