mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 18:45:21 +01:00
Fix inhabited time check
This commit is contained in:
parent
cf93cb56c4
commit
c7fc230dcf
@ -160,7 +160,7 @@ private boolean tileRenderPreconditions(Vector2i tile) {
|
||||
for (int z = minChunk.getY(); z <= maxChunk.getY(); z++) {
|
||||
Chunk chunk = map.getWorld().getChunk(x, z);
|
||||
if (!chunk.isGenerated()) return false;
|
||||
if (chunk.getInhabitedTime() < minInhab) isInhabited = true;
|
||||
if (chunk.getInhabitedTime() >= minInhab) isInhabited = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,7 +168,10 @@ private boolean tileRenderPreconditions(Vector2i tile) {
|
||||
for (int x = minChunk.getX() - minInhabRadius; x <= maxChunk.getX() + minInhabRadius; x++) {
|
||||
for (int z = minChunk.getY() - minInhabRadius; z <= maxChunk.getY() + minInhabRadius; z++) {
|
||||
Chunk chunk = map.getWorld().getChunk(x, z);
|
||||
if (chunk.getInhabitedTime() < minInhab) isInhabited = true;
|
||||
if (chunk.getInhabitedTime() >= minInhab) {
|
||||
isInhabited = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user