From 1d4fe6728c63ebafdd196962ed664b5649d62028 Mon Sep 17 00:00:00 2001 From: Edouard127 <46357922+Edouard127@users.noreply.github.com> Date: Fri, 7 Mar 2025 19:26:58 -0500 Subject: [PATCH] Removed Y level assertion --- common/src/main/kotlin/com/lambda/util/world/Position.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/src/main/kotlin/com/lambda/util/world/Position.kt b/common/src/main/kotlin/com/lambda/util/world/Position.kt index 6a7b0a199..6e19a639b 100644 --- a/common/src/main/kotlin/com/lambda/util/world/Position.kt +++ b/common/src/main/kotlin/com/lambda/util/world/Position.kt @@ -47,17 +47,14 @@ internal const val Y_MASK = (1L shl Y_BITS) - 1L internal const val MIN_X = -(1L shl X_BITS - 1) internal const val MIN_Z = -(1L shl Z_BITS - 1) -internal const val MIN_Y = -(1L shl Y_BITS - 1) internal const val MAX_X = (1L shl X_BITS - 1) - 1L internal const val MAX_Z = (1L shl Z_BITS - 1) - 1L -internal const val MAX_Y = (1L shl Y_BITS - 1) - 1L /** * Creates a new position from the given coordinates. */ fun fastVectorOf(x: Long, y: Long, z: Long): FastVector { require(x in MIN_X..MAX_X) { "X coordinate out of bounds for $X_BITS bits: $x" } - require(y in MIN_Y..MAX_Y) { "Y coordinate out of bounds for $Y_BITS bits: $y" } require(z in MIN_Z..MAX_Z) { "Z coordinate out of bounds for $Z_BITS bits: $z" } return ((x and X_MASK) shl X_SHIFT) or ((z and Z_MASK) shl Z_SHIFT) or (y and Y_MASK)