From 05e21deb57525a8865927a96501b1182d2ba088f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 21 Feb 2022 09:15:25 +0700 Subject: [PATCH] Measure surface rather than perimeter --- src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt index 2b76a594..218b13ee 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/world/Chunk.kt @@ -806,7 +806,7 @@ abstract class Chunk, This : Chunk xSpanSize + ySpanSize) { + if (xSpanDepth * ySpanDepth > xSpanSize * ySpanSize) { depthFirst.markSeen() aabb = AABB(depthFirst.mins.toDoubleVector(), depthFirst.maxs.toDoubleVector() + Vector2d.POSITIVE_XY) } else {