diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-24 16:48:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-24 16:48:31 +0100 |
commit | 9eb402306af709ed0567c6b3ea09cd7c52b3c7b2 (patch) | |
tree | a23d5197ecb6a7d3ed4049e5925028828de0ea55 | |
parent | 8a0a7ebec9e2d53247810e1b774451f81eed2122 (diff) | |
download | skyhanni-9eb402306af709ed0567c6b3ea09cd7c52b3c7b2.tar.gz skyhanni-9eb402306af709ed0567c6b3ea09cd7c52b3c7b2.tar.bz2 skyhanni-9eb402306af709ed0567c6b3ea09cd7c52b3c7b2.zip |
Fixed Dungeon Clean End sometimes not deactivating when chest spawned.
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt index 8602b9282..21e23124d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.PlaySoundEvent import at.hannibal2.skyhanni.events.ReceiveParticleEvent import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher +import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern import net.minecraft.client.Minecraft import net.minecraft.client.entity.EntityOtherPlayerMP import net.minecraft.entity.item.EntityArmorStand @@ -20,7 +21,10 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class DungeonCleanEnd { private val config get() = SkyHanniMod.feature.dungeon.cleanEnd - private val catacombsPattern = "([ ]*)§r§c(The|Master Mode) Catacombs §r§8- §r§eFloor (.*)".toPattern() + private val catacombsPattern by RepoPattern.pattern( + "dungeon.end.chests.spawned", + "(?:§f)?([ ]*)§r§c(The|Master Mode) Catacombs §r§8- §r§eFloor (.*)" + ) private var bossDone = false private var chestsSpawned = false |