diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-23 13:16:57 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-23 13:16:57 +0200 |
commit | d060394ccd00fbe3a86481db939032e13ca458b2 (patch) | |
tree | 94f7e35ad3723d4a52c7e077caca4b61f05aa1f5 /src/main/java/at/hannibal2/skyhanni/features/nether | |
parent | 51616771a0ebb98b7b63703562ad334ac418d1a6 (diff) | |
download | skyhanni-d060394ccd00fbe3a86481db939032e13ca458b2.tar.gz skyhanni-d060394ccd00fbe3a86481db939032e13ca458b2.tar.bz2 skyhanni-d060394ccd00fbe3a86481db939032e13ca458b2.zip |
showing the name of ashfang gravity orbs tag above
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt index 11a6f5f2a..ed1abeacb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangGravityOrbs.kt @@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.RenderUtils.drawString import at.hannibal2.skyhanni.utils.SpecialColour import at.hannibal2.skyhanni.utils.getLorenzVec import net.minecraft.client.Minecraft @@ -40,13 +41,15 @@ class AshfangGravityOrbs { val color = Color(SpecialColour.specialToChromaRGB(special), true) - val playerEyeLocation = LocationUtils.playerEyeLocation() + val playerLocation = LocationUtils.playerLocation() for (orb in orbs) { if (orb.isDead) continue val orbLocation = orb.getLorenzVec() - if (!LocationUtils.canSee(playerEyeLocation, orbLocation.add(0.0, 2.0, 0.0))) continue - event.drawWaypointFilled(orbLocation.add(-0.5, 1.25, -0.5), color) + if (orbLocation.distance(playerLocation) < 15) { + //TODO find way to dynamically change color + event.drawString(orbLocation.add(0.0, 2.5, 0.0), "§cGravity Orb") + } } } |