diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/EuclidMath.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/EuclidMath.kt index cbdf67f10..8b08843ea 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/EuclidMath.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/EuclidMath.kt @@ -422,8 +422,8 @@ private fun ellipsoidShapeCacheKey(x: Int, y: Int, z: Int): Long { require(z > 0) { "Negative Z $z" } return (x.toLong() and 0xFFFFFL) or - ((y.toLong() ushr 20) and 0xFFFFFL) or - ((z.toLong() ushr 40) and 0xFFFFFL) + ((y.toLong() and 0xFFFFFL) shl 20) or + ((z.toLong() and 0xFFFFFL) shl 40) } private val blockShapeCache = Long2ObjectOpenHashMap>>()