From 889a312eec474439363cbd384a1ca744c2a791ac Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 22 Dec 2022 07:05:06 +0700 Subject: [PATCH] oh my god --- src/main/kotlin/ru/dbotthepony/mc/otm/core/EuclidMath.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>>()