Skip to content

Commit

Permalink
fix: slot number for Perkpocalypse perks in calendar (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaynx authored Oct 12, 2024
1 parent 3c527ba commit f491963
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ object MayorInfo {
) return
if (event.container is ContainerChest) {
val chestName = event.chestName
if (((chestName == "Mayor Jerry" && event.slot.slotNumber == 13) || (chestName == "Calendar and Events" && event.slot.slotNumber == 46)) && event.slot.hasStack) {
if (((chestName == "Mayor Jerry" && event.slot.slotNumber == 13) || (chestName == "Calendar and Events" && event.slot.slotNumber == 37)) && event.slot.hasStack) {
val lore = ItemUtil.getItemLore(event.slot.stack)
if (!lore.contains("§9Perkpocalypse Perks:")) return
val endingIn = lore.asReversed().find { it.startsWith("§7Next set of perks in") } ?: return
Expand Down

0 comments on commit f491963

Please sign in to comment.