oh my god

This commit is contained in:
DBotThePony 2022-12-22 07:05:06 +07:00
parent 84511d37eb
commit 889a312eec
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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<SoftReference<List<BlockPos>>>()