From 27916b0a2cd045c61c156cb0439cb8ed9cf656f7 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Mon, 5 Jun 2023 11:23:18 -0500 Subject: updated some rendering code --- src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/main/kotlin/dulkirmod/features/BlazeSlayerFeatures.kt') 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( -- cgit