diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-01 02:14:04 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-01 02:14:04 +0100 |
commit | b8db01c32f2936728dde3a6f68711e9e0fce5bed (patch) | |
tree | fbaf917b5713234967f3b518ab445e6558c079db /src/main/java/at/hannibal2/skyhanni/features/event | |
parent | aef7ba127c67950a685fead8a79c3daf7fa23e4b (diff) | |
download | skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.tar.gz skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.tar.bz2 skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.zip |
utilizing location.add(x = x)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 16 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index df89ccd7f..01aabed38 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -158,19 +158,19 @@ object GriffinBurrowHelper { val distance = location.distance(playerLocation) if (distance > 10) { val formattedDistance = LorenzUtils.formatInteger(distance.toInt()) - event.drawDynamicText(location.add(0, 1, 0), "§d§lInquisitor §e${formattedDistance}m", 1.7) + event.drawDynamicText(location.add(y = 1), "§d§lInquisitor §e${formattedDistance}m", 1.7) } else { - event.drawDynamicText(location.add(0, 1, 0), "§d§lInquisitor", 1.7) + event.drawDynamicText(location.add(y = 1), "§d§lInquisitor", 1.7) } if (distance < 5) { InquisitorWaypointShare.maybeRemove(playerName) } - event.drawDynamicText(location.add(0, 1, 0), "§eFrom §b$playerName", 1.6, yOff = 9f) + event.drawDynamicText(location.add(y = 1), "§eFrom §b$playerName", 1.6, yOff = 9f) if (config.inquisitorSharing.showDespawnTime) { val spawnTime = inquis.spawnTime val format = TimeUtils.formatDuration(75.seconds - spawnTime.passedSince()) - event.drawDynamicText(location.add(0, 1, 0), "§eDespawns in §b$format", 1.6, yOff = 18f) + event.drawDynamicText(location.add(y = 1), "§eDespawns in §b$format", 1.6, yOff = 18f) } } } @@ -185,7 +185,7 @@ object GriffinBurrowHelper { val distance = location.distance(playerLocation) val burrowType = burrow.value event.drawColor(location, burrowType.color, distance > 10) - event.drawDynamicText(location.add(0, 1, 0), burrowType.text, 1.5) + event.drawDynamicText(location.add(y = 1), burrowType.text, 1.5) } } @@ -194,10 +194,10 @@ object GriffinBurrowHelper { val guessLocation = findBlock(it) val distance = guessLocation.distance(playerLocation) event.drawColor(guessLocation, LorenzColor.WHITE, distance > 10) - event.drawDynamicText(guessLocation.add(0, 1, 0), "Guess", 1.5) + event.drawDynamicText(guessLocation.add(y = 1), "Guess", 1.5) if (distance > 5) { val formattedDistance = LorenzUtils.formatInteger(distance.toInt()) - event.drawDynamicText(guessLocation.add(0, 1, 0), "§e${formattedDistance}m", 1.7, yOff = 10f) + event.drawDynamicText(guessLocation.add(y = 1), "§e${formattedDistance}m", 1.7, yOff = 10f) } } } @@ -224,7 +224,7 @@ object GriffinBurrowHelper { if (config.burrowNearestWarp) { BurrowWarpHelper.currentWarp?.let { warp -> animationLocation?.let { - event.drawColor(it.add(0.0, 1.0, 0.0), LorenzColor.AQUA) + event.drawColor(it.add(y = 1), LorenzColor.AQUA) if (it.distanceToPlayer() < 10) { event.drawString(it.add(0.5, 1.5, 0.5), "§bWarp to " + warp.displayName, true) if (config.keyBindWarp != Keyboard.KEY_NONE) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt index c4f12a993..a99be4102 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt @@ -238,7 +238,7 @@ object InquisitorWaypointShare { val inquis = SharedInquisitor(cleanName, location, SimpleTimeMark.now()) waypoints = waypoints.editCopy { this[cleanName] = inquis } if (config.focusInquisitor) { - GriffinBurrowHelper.setTargetLocation(location.add(0, 1, 0)) + GriffinBurrowHelper.setTargetLocation(location.add(y = 1)) GriffinBurrowHelper.animationLocation = LocationUtils.playerLocation() } |