aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/features/dungeon
diff options
context:
space:
mode:
authorAppability <appable@icloud.com>2022-11-13 16:54:28 -0800
committerAppability <appable@icloud.com>2022-11-13 16:54:28 -0800
commit012690fe591b7de4cb248a632a48371432be7610 (patch)
tree97e5f0c668651e904275fd4c212bab2413c1df6b /src/main/kotlin/com/ambientaddons/features/dungeon
parent766ce61c5655935a232c5d87c1e334c6fba3d73b (diff)
downloadAmbientAddons-012690fe591b7de4cb248a632a48371432be7610.tar.gz
AmbientAddons-012690fe591b7de4cb248a632a48371432be7610.tar.bz2
AmbientAddons-012690fe591b7de4cb248a632a48371432be7610.zip
fix inaccessible color setting + fix thorn timer
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/dungeon')
-rw-r--r--src/main/kotlin/com/ambientaddons/features/dungeon/DungeonHighlights.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/dungeon/DungeonHighlights.kt b/src/main/kotlin/com/ambientaddons/features/dungeon/DungeonHighlights.kt
index 5019151..aedd2e7 100644
--- a/src/main/kotlin/com/ambientaddons/features/dungeon/DungeonHighlights.kt
+++ b/src/main/kotlin/com/ambientaddons/features/dungeon/DungeonHighlights.kt
@@ -4,6 +4,7 @@ import AmbientAddons.Companion.config
import AmbientAddons.Companion.mc
import com.ambientaddons.utils.Area
import com.ambientaddons.utils.Extensions.skyblockID
+import com.ambientaddons.utils.Extensions.stripControlCodes
import com.ambientaddons.utils.SBLocation
import com.ambientaddons.utils.render.EntityUtils
import net.minecraft.entity.Entity
@@ -15,6 +16,7 @@ import net.minecraft.entity.monster.EntitySkeleton
import net.minecraft.entity.passive.EntityBat
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemArmor
+import net.minecraftforge.client.event.ClientChatReceivedEvent
import net.minecraftforge.client.event.RenderWorldLastEvent
import net.minecraftforge.event.world.WorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -37,7 +39,7 @@ object DungeonHighlights {
@SubscribeEvent
fun onRenderWorld(event: RenderWorldLastEvent) {
- if (SBLocation.area != Area.Dungeon) return
+ if (SBLocation.area != Area.Dungeon || SBLocation.dungeonFloor?.enteredBoss == true) return
mc.theWorld.loadedEntityList.forEach { entity ->
if (entity is EntityArmorStand && entity.customNameTag.contains("✯") && !markedArmorStands.contains(entity)) {
if (config.starredHighlight == 0) return@forEach
@@ -48,10 +50,8 @@ object DungeonHighlights {
}.forEach {
starredMobs.add(it)
}
- } else if (entity is EntityPlayer) {
- if (entity.uniqueID == idkmansry) {
- nearIdkmansry = true
- }
+ } else if (entity is EntityPlayer && mc.thePlayer.uniqueID != idkmansry && entity.uniqueID == idkmansry) {
+ nearIdkmansry = true
}
}
mc.theWorld.loadedEntityList.forEach {