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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user