aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 14:29:10 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 14:29:10 +0200
commitf9b645ec52f44548ec8197190373ccae4335bae2 (patch)
tree9b3ba120529b8548755238386a85559408b565a8
parenta58f5cea0a3378b0f32a57750ad5c750aeec92d3 (diff)
downloadskyhanni-f9b645ec52f44548ec8197190373ccae4335bae2.tar.gz
skyhanni-f9b645ec52f44548ec8197190373ccae4335bae2.tar.bz2
skyhanni-f9b645ec52f44548ec8197190373ccae4335bae2.zip
using cached value
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt3
1 files changed, 1 insertions, 2 deletions
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
}
}