Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class QuickNavigationConfig {
* "Pets" : simple match on letters
* "(?: \\(\\d+/\\d+\\))?" : optional match on the non-capturing group for the page in the format " ($number/$number)"
*/
public QuickNavItem button3 = new QuickNavItem(false, new ItemData(Items.BONE), "Pets(?: \\(\\d+/\\d+\\))?", "/pets", "Pets");
public QuickNavItem button3 = new QuickNavItem(false, new ItemData(Items.BONE), "(?:\\(\\d+/\\d+\\) )?Pets", "/pets", "Pets");

/* REGEX Explanation
* "Wardrobe" : simple match on letters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void init() {
checkKuudraKeyShop(genericContainerScreen, factionShopMatcher);
});
}
case String s when s.startsWith("Pets") -> {
case String s when s.endsWith("Pets") -> {
ScreenEvents.afterTick(screen).register(_ -> {
checkForKuudraPet(genericContainerScreen);
});
Expand Down
Loading