From c1ccf0ef9b7e3672bc295f9aa124d4415ed8588e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Dec 2023 04:33:56 +0100 Subject: Fixed toBlocPos -> toBlockPos --- src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt') 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 { 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 { 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) -- cgit