diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-14 11:08:35 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-14 11:08:35 +0200 |
commit | 2b786f4997136509da9efda4e12af57b579fe62b (patch) | |
tree | 8db4269d624e405494a4997ebf1d00586995c52b /src/main/java/at/hannibal2/skyhanni/diana | |
parent | 8cfb6d1de8b0dbee96d73f56720596541dafb304 (diff) | |
download | skyhanni-2b786f4997136509da9efda4e12af57b579fe62b.tar.gz skyhanni-2b786f4997136509da9efda4e12af57b579fe62b.tar.bz2 skyhanni-2b786f4997136509da9efda4e12af57b579fe62b.zip |
adding summon soul display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/diana')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/diana/GriffinBurrowFinder.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/diana/GriffinBurrowFinder.kt b/src/main/java/at/hannibal2/skyhanni/diana/GriffinBurrowFinder.kt index 9cbabfa2f..bdbda2e50 100644 --- a/src/main/java/at/hannibal2/skyhanni/diana/GriffinBurrowFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/diana/GriffinBurrowFinder.kt @@ -51,7 +51,7 @@ class GriffinBurrowFinder { fun onWorldRender(event: RenderWorldLastEvent) { if (lastArrowLine != null) { var start = lastArrowLine!!.start - val y = (Minecraft.getMinecraft().thePlayer.position.y - 1).toDouble() + val y = (LocationUtils.playerLocation().y - 1) start = LorenzVec(start.x, y, start.z) val direction = lastArrowLine!!.direction @@ -74,7 +74,7 @@ class GriffinBurrowFinder { val x = packet.xCoordinate val y = packet.yCoordinate val z = packet.zCoordinate - val distance = LorenzVec(x, y, z).distance(Minecraft.getMinecraft().thePlayer.getLorenzVec()) + val distance = LorenzVec(x, y, z).distance(LocationUtils.playerLocation()) if (distance < 20) { // LorenzDebug.log("") // LorenzDebug.log("S2APacketParticles close") @@ -93,7 +93,7 @@ class GriffinBurrowFinder { val x = packet.x val y = packet.y val z = packet.z - val distance = LorenzVec(x, y, z).distance(Minecraft.getMinecraft().thePlayer.getLorenzVec()) + val distance = LorenzVec(x, y, z).distance(LocationUtils.playerLocation()) if (distance < 20) { val soundName = packet.soundName val pitch = packet.pitch @@ -135,7 +135,7 @@ class GriffinBurrowFinder { } private fun checkEntities() { - val playerLocation = Minecraft.getMinecraft().thePlayer.position.toLorenzVec() + val playerLocation = LocationUtils.playerLocation() for (entity in Minecraft.getMinecraft().theWorld.loadedEntityList) { if (list.contains(entity.uniqueID)) continue if (entity !is EntityArmorStand) continue |