aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/minion
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-26 22:26:24 +1000
committerGitHub <noreply@github.com>2024-05-26 14:26:24 +0200
commit0ddd9edc94bc0c872109acd0b845163b073ceb6a (patch)
treee8cad5d9d86105dfce6809489c9f6409a3a5ffc2 /src/main/java/at/hannibal2/skyhanni/features/minion
parent573e8452bf2e9a3e1ca94f736c2b441796ad4b92 (diff)
downloadskyhanni-0ddd9edc94bc0c872109acd0b845163b073ceb6a.tar.gz
skyhanni-0ddd9edc94bc0c872109acd0b845163b073ceb6a.tar.bz2
skyhanni-0ddd9edc94bc0c872109acd0b845163b073ceb6a.zip
Backend: Use less deprecated LorenzVec functions (#1556)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt
index c98a32a68..7eba48a4d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionXp.kt
@@ -134,7 +134,7 @@ class MinionXp {
)
return positionsToCheck.any { position ->
- val pos = minionPosition.add(position).toBlockPos()
+ val pos = (minionPosition + position).toBlockPos()
val block = Minecraft.getMinecraft().theWorld.getBlockState(pos).block
block is BlockChest
}