File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
common/src/main/kotlin/com/lambda/util/world Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,14 @@ internal const val Y_MASK = (1L shl Y_BITS) - 1L
4747
4848internal const val MIN_X = - (1L shl X_BITS - 1 )
4949internal const val MIN_Z = - (1L shl Z_BITS - 1 )
50- internal const val MIN_Y = - (1L shl Y_BITS - 1 )
5150internal const val MAX_X = (1L shl X_BITS - 1 ) - 1L
5251internal const val MAX_Z = (1L shl Z_BITS - 1 ) - 1L
53- internal const val MAX_Y = (1L shl Y_BITS - 1 ) - 1L
5452
5553/* *
5654 * Creates a new position from the given coordinates.
5755 */
5856fun fastVectorOf (x : Long , y : Long , z : Long ): FastVector {
5957 require(x in MIN_X .. MAX_X ) { " X coordinate out of bounds for $X_BITS bits: $x " }
60- require(y in MIN_Y .. MAX_Y ) { " Y coordinate out of bounds for $Y_BITS bits: $y " }
6158 require(z in MIN_Z .. MAX_Z ) { " Z coordinate out of bounds for $Z_BITS bits: $z " }
6259
6360 return ((x and X_MASK ) shl X_SHIFT ) or ((z and Z_MASK ) shl Z_SHIFT ) or (y and Y_MASK )
You can’t perform that action at this time.
0 commit comments