Improve inhabited time check

This commit is contained in:
Lukas Rieger (Blue) 2022-12-17 15:12:23 +01:00
parent c7fc230dcf
commit df5acb6c53
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -164,7 +164,7 @@ private boolean tileRenderPreconditions(Vector2i tile) {
}
}
if (minInhabRadius > 0) {
if (minInhabRadius > 0 && !isInhabited) {
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);