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/features/BlazeSlayerFeatures.kt | |
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/features/BlazeSlayerFeatures.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt b/src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt index 21630e7..edf3114 100644 --- a/src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt +++ b/src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt @@ -21,10 +21,7 @@ object BlazeSlayerFeatures { if (DulkirConfig.attunementDisplay) { if (event.entity is EntityArmorStand && event.entity.hasCustomName()) { val name = Utils.stripColorCodes(event.entity.customNameTag) - val newPos = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z) - val x = newPos[0] - val y = newPos[1] - val z = newPos[2] + val (x, y, z) = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z) when { name.contains("CRYSTAL ♨") -> { WorldRenderUtils.drawCustomBox( @@ -89,10 +86,7 @@ object BlazeSlayerFeatures { if (event.entity is EntityArmorStand && event.entity.hasCustomName()) { val name = Utils.stripColorCodes(event.entity.customNameTag) - val newPos = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z) - val x = newPos[0] - val y = newPos[1] - val z = newPos[2] + val (x, y, z) = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z) if (name.contains(minibosses)) { WorldRenderUtils.drawCustomBox( |