From f9b645ec52f44548ec8197190373ccae4335bae2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 4 Jul 2023 14:29:10 +0200 Subject: using cached value --- src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt index 300dd2b23..63667888e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt @@ -8,7 +8,6 @@ import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings import at.hannibal2.skyhanni.utils.StringUtils.firstLetterUppercase -import at.hannibal2.skyhanni.utils.getLorenzVec import at.hannibal2.skyhanni.utils.jsonobjects.DanceRoomInstructionsJson import kotlinx.coroutines.* import net.minecraft.client.Minecraft @@ -102,7 +101,7 @@ object DanceRoomHelper { if (RiftAPI.inRift() && config.hidePlayers) { val entity = event.entity if (entity is EntityOtherPlayerMP) { - if (danceRoom.isVecInside(entity.getLorenzVec().toVec3())) { + if (inRoom) { event.isCanceled = true } } -- cgit