From bb3879f8dbad3d2e71a5b3ae1c16ffe0e9d71e5b Mon Sep 17 00:00:00 2001 From: alexia Date: Fri, 2 Feb 2024 11:14:49 +0100 Subject: [PATCH] Fix small mistake in calendar mayor check It seems to work anyway, but this should be a `&&`. Signed-off-by: alexia --- .../gg/skytils/skytilsmod/features/impl/handlers/MayorInfo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/handlers/MayorInfo.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/handlers/MayorInfo.kt index fde922410..3576a1124 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/handlers/MayorInfo.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/handlers/MayorInfo.kt @@ -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 @@ -184,4 +184,4 @@ data class JerrySession( val nextSwitch: Long, val mayor: Mayor, val perks: List -) \ No newline at end of file +)