Skip to content

Commit

Permalink
fix: small mistake in calendar mayor check (#443)
Browse files Browse the repository at this point in the history
It seems to work anyway, but this should be a `&&`.

Signed-off-by: alexia <me@alexia.lol>
  • Loading branch information
lunaynx authored and My-Name-Is-Jeff committed Feb 4, 2024
1 parent d9e0b46 commit 65124ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ object MayorInfo {
) return
if (event.container is ContainerChest) {
val chestName = event.chestName
if (((chestName == "Mayor Jerry" && event.slot.slotNumber == 11) || (chestName == "Calendar and Events" || event.slot.slotNumber == 46)) && event.slot.hasStack) {
if (((chestName == "Mayor Jerry" && event.slot.slotNumber == 11) || (chestName == "Calendar and Events" && event.slot.slotNumber == 46)) && event.slot.hasStack) {
val lore = ItemUtil.getItemLore(event.slot.stack)
if (!lore.contains("§9Perkpocalypse Perks:")) return
val endingIn = lore.find { it.startsWith("§7Next set of perks in") } ?: return
Expand Down Expand Up @@ -184,4 +184,4 @@ data class JerrySession(
val nextSwitch: Long,
val mayor: Mayor,
val perks: List<MayorPerk>
)
)

0 comments on commit 65124ed

Please sign in to comment.