Skip to content

Commit

Permalink
Turn back on loading of unpopulated chunks - flag in CB doesn't appear
Browse files Browse the repository at this point in the history
to be reliable
  • Loading branch information
mikeprimm committed Aug 9, 2012
1 parent fca05e3 commit 9e29cb8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/org/dynmap/bukkit/NewMapChunkCache.java
Expand Up @@ -808,13 +808,14 @@ else if(hidestyle == HiddenChunkStyle.FILL_OCEAN)
}
/* Test if chunk isn't populated */
boolean populated = true;
if((nmschunk != null) && (doneflag != null)) {
try {
populated = doneflag.getBoolean(nmschunk);
} catch (IllegalArgumentException e) {
} catch (IllegalAccessException e) {
}
}
//TODO: figure out why this doesn't appear to be reliable in Bukkit
//if((nmschunk != null) && (doneflag != null)) {
// try {
// populated = doneflag.getBoolean(nmschunk);
// } catch (IllegalArgumentException e) {
// } catch (IllegalAccessException e) {
// }
//}
if(!vis) {
if(hidestyle == HiddenChunkStyle.FILL_STONE_PLAIN)
ss = STONE;
Expand Down

0 comments on commit 9e29cb8

Please sign in to comment.