Skip to content

Commit

Permalink
added suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlseraid committed May 17, 2024
1 parent 8056183 commit cd3ddea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ class ChatFilter {
"§.* §r§7has been promoted to §r§7\\[.*§r§7] §r§.*§r§7!".toPattern(),
"§7Your §r§aRabbit Barn §r§7capacity has been increased to §r§a.* Rabbits§r§7!".toPattern(),
"§7You will now produce §r§6.* Chocolate §r§7per click!".toPattern(),
"§7You upgraded to §r§d.*?§r§7!".toPattern()

"§7You upgraded to §r§d.*?§r§7!".toPattern(),
)
private val powderMiningMessages = listOf(
"§aYou uncovered a treasure chest!",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.event.lobby.waypoints.christmas

import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.HypixelData
import at.hannibal2.skyhanni.data.WinterAPI
import at.hannibal2.skyhanni.data.jsonobjects.repo.EventWaypointsJson
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
Expand All @@ -19,7 +20,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText
import at.hannibal2.skyhanni.utils.StringUtils.matches
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.time.LocalDate

// todo: create abstract class for this and BasketWaypoints
class PresentWaypoints {
Expand Down Expand Up @@ -123,11 +123,6 @@ class PresentWaypoints {
loadEventWaypoints(data.presents_entrances ?: error("'presents_entrances' is null in EventWaypoints!"))
}

private fun isDecember(): Boolean {
val currentMonth = LocalDate.now().month
return currentMonth == java.time.Month.DECEMBER
}

private fun isEnabled(): Boolean =
LorenzUtils.inHypixelLobby && (config.allWaypoints || config.allEntranceWaypoints && isDecember())
LorenzUtils.inHypixelLobby && (config.allWaypoints || config.allEntranceWaypoints && WinterAPI.isDecember())
}

0 comments on commit cd3ddea

Please sign in to comment.