9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

suppress unchecked cast warning for the ChunkedDataCache

This commit is contained in:
Julian Krings
2025-12-18 18:53:59 +01:00
parent e164a3bb5c
commit 3abe671851

View File

@@ -35,6 +35,7 @@ class ChunkedDataCache<T> private constructor(
}
@BlockCoordinates
@Suppress("UNCHECKED_CAST")
fun get(x: Int, z: Int): T? {
if (!cache) {
return stream.get((this.x + x).toDouble(), (this.z + z).toDouble())