From 012690fe591b7de4cb248a632a48371432be7610 Mon Sep 17 00:00:00 2001 From: Appability Date: Sun, 13 Nov 2022 16:54:28 -0800 Subject: fix inaccessible color setting + fix thorn timer --- .../com/ambientaddons/features/dungeon/DungeonHighlights.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/kotlin/com/ambientaddons/features/dungeon') 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 { -- cgit