diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-26 16:37:41 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-26 16:37:41 +0100 |
| commit | 39826c759c26776f655cb8237b57f25343e8a77b (patch) | |
| tree | 4b65714e5ba3a3def16cd41b45c2e89f84e81e4f /src/main/java/at/hannibal2/skyhanni/utils | |
| parent | efe26c67aad6143cde820a8836495631a8128d0f (diff) | |
| download | skyhanni-39826c759c26776f655cb8237b57f25343e8a77b.tar.gz skyhanni-39826c759c26776f655cb8237b57f25343e8a77b.tar.bz2 skyhanni-39826c759c26776f655cb8237b57f25343e8a77b.zip | |
Added GardenPlotAPI, support for detecting the current slot of the player
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt index e6929d737..580075543 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LocationUtils.kt @@ -27,9 +27,9 @@ object LocationUtils { return vec.add(0.0, 0.0 + player.getEyeHeight(), 0.0) } - fun AxisAlignedBB.isVecInside(vec: LorenzVec) = isVecInside(vec.toVec3()) + fun AxisAlignedBB.isInside(vec: LorenzVec) = isVecInside(vec.toVec3()) - fun AxisAlignedBB.isPlayerInside() = isVecInside(playerLocation()) + fun AxisAlignedBB.isPlayerInside() = isInside(playerLocation()) fun LorenzVec.canBeSeen(radius: Double = 150.0): Boolean { val a = playerEyeLocation() |
