From 0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 23 Jul 2023 23:46:21 +0200 Subject: fixed names --- src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt index 59f3f26b2..30a8025cf 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt @@ -132,7 +132,7 @@ object EntityUtils { getEntitiesNearby(LocationUtils.playerLocation(), radius) inline fun getEntitiesNearby(location: LorenzVec, radius: Double): List = - getEntities().filterIsInstance().filter { it.distanceTo(location) < radius } + getAllEntities().filterIsInstance().filter { it.distanceTo(location) < radius } fun EntityLivingBase.isAtFullHealth() = baseMaxHealth == health.toInt() @@ -158,11 +158,11 @@ object EntityUtils { fun EntityEnderman.getBlockInHand(): IBlockState? = heldBlockState - inline fun getAllEntities(): List = getEntities().filterIsInstance() + inline fun getEntities(): List = getAllEntities().filterIsInstance() inline fun getEntitiesOrNull(): List? = getAllEntitiesOrNull()?.filterIsInstance() - fun getEntities(): List = getAllEntitiesOrNull() ?: error("minecraft.world.loadedEntityList is null.") + fun getAllEntities(): List = getAllEntitiesOrNull() ?: error("minecraft.world.loadedEntityList is null.") fun getAllEntitiesOrNull(): List? = Minecraft.getMinecraft()?.theWorld?.loadedEntityList?.toMutableList() } \ No newline at end of file -- cgit