diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-10 04:33:56 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-10 04:33:56 +0100 |
commit | c1ccf0ef9b7e3672bc295f9aa124d4415ed8588e (patch) | |
tree | af63a05e7004974b2ebe843eec547748baac7ac2 /src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | |
parent | 873378ed823de01b4be4900c0f4893acb1e97f03 (diff) | |
download | skyhanni-c1ccf0ef9b7e3672bc295f9aa124d4415ed8588e.tar.gz skyhanni-c1ccf0ef9b7e3672bc295f9aa124d4415ed8588e.tar.bz2 skyhanni-c1ccf0ef9b7e3672bc295f9aa124d4415ed8588e.zip |
Fixed toBlocPos -> toBlockPos
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt index 427d5e48b..36c01c64d 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt @@ -35,8 +35,8 @@ object EntityUtils { debugWrongEntity: Boolean = false, ): List<EntityArmorStand> { val center = getLorenzVec().add(y = y) - val a = center.add(-inaccuracy, -inaccuracy - 3, -inaccuracy).toBlocPos() - val b = center.add(inaccuracy, inaccuracy + 3, inaccuracy).toBlocPos() + val a = center.add(-inaccuracy, -inaccuracy - 3, -inaccuracy).toBlockPos() + val b = center.add(inaccuracy, inaccuracy + 3, inaccuracy).toBlockPos() val alignedBB = AxisAlignedBB(a, b) val clazz = EntityArmorStand::class.java val found = worldObj.getEntitiesWithinAABB(clazz, alignedBB) @@ -59,8 +59,8 @@ object EntityUtils { radius: Double = 3.0, ): List<EntityArmorStand> { val center = getLorenzVec().add(y = 3) - val a = center.add(-radius, -radius - 3, -radius).toBlocPos() - val b = center.add(radius, radius + 3, radius).toBlocPos() + val a = center.add(-radius, -radius - 3, -radius).toBlockPos() + val b = center.add(radius, radius + 3, radius).toBlockPos() val alignedBB = AxisAlignedBB(a, b) val clazz = EntityArmorStand::class.java val found = worldObj.getEntitiesWithinAABB(clazz, alignedBB) @@ -78,8 +78,8 @@ object EntityUtils { debugWrongEntity: Boolean = false, ): EntityArmorStand? { val center = getLorenzVec().add(y = y) - val a = center.add(-inaccuracy, -inaccuracy - 3, -inaccuracy).toBlocPos() - val b = center.add(inaccuracy, inaccuracy + 3, inaccuracy).toBlocPos() + val a = center.add(-inaccuracy, -inaccuracy - 3, -inaccuracy).toBlockPos() + val b = center.add(inaccuracy, inaccuracy + 3, inaccuracy).toBlockPos() val alignedBB = AxisAlignedBB(a, b) val clazz = EntityArmorStand::class.java val found = worldObj.getEntitiesWithinAABB(clazz, alignedBB) |