diff options
author | inglettronald <inglettronald@gmail.com> | 2023-06-05 11:23:18 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-06-05 11:24:47 -0500 |
commit | 27916b0a2cd045c61c156cb0439cb8ed9cf656f7 (patch) | |
tree | ce790767b43bd526b2d1735a63c5cab07eae1a35 /src/main/kotlin/dulkirmod/utils | |
parent | 860045f63761c91247f80f17ddbad8bfa365aa0f (diff) | |
download | DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.gz DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.bz2 DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.zip |
updated some rendering code
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils')
-rw-r--r-- | src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt index 7cb00f7..0728f38 100644 --- a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt +++ b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt @@ -174,20 +174,20 @@ class WorldRenderUtils { GlStateManager.popMatrix() } - fun getRenderX() : Double { + private fun getRenderX() : Double { return (mc.renderManager as AccessorRenderManager).renderX } - fun getRenderY() : Double { + private fun getRenderY() : Double { return (mc.renderManager as AccessorRenderManager).renderY } - fun getRenderZ() : Double { + private fun getRenderZ() : Double { return (mc.renderManager as AccessorRenderManager).renderZ } - fun fixRenderPos(x: Double, y: Double, z: Double) : Array<Double> { - return arrayOf(x + getRenderX(), y + getRenderY(), z + getRenderZ()) + fun fixRenderPos(x: Double, y: Double, z: Double) : Triple<Double, Double, Double> { + return Triple(x + getRenderX(), y + getRenderY(), z + getRenderZ()) } } }
\ No newline at end of file |