From f72071f5bf01789272dc224e259cdeeb4a9ee5e7 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 4 Jun 2018 09:49:33 -0400 Subject: [PATCH] screenshot plugin: capitalize pet messages constant --- .../client/plugins/screenshot/ScreenshotPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/screenshot/ScreenshotPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/screenshot/ScreenshotPlugin.java index 4f4d7f8107..02db8d3edf 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/screenshot/ScreenshotPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/screenshot/ScreenshotPlugin.java @@ -107,7 +107,7 @@ public class ScreenshotPlugin extends Plugin private static final Pattern NUMBER_PATTERN = Pattern.compile("([0-9]+)"); private static final Pattern LEVEL_UP_PATTERN = Pattern.compile("Your ([a-zA-Z]+) (?:level is|are)? now (\\d+)\\."); - private static final ImmutableList petMessages = ImmutableList.of("You have a funny feeling like you're being followed", + private static final ImmutableList PET_MESSAGES = ImmutableList.of("You have a funny feeling like you're being followed", "You feel something weird sneaking into your backpack", "You have a funny feeling like you would have been followed"); @@ -252,8 +252,8 @@ public class ScreenshotPlugin extends Plugin return; } } - - if (config.screenshotPet() && petMessages.stream().anyMatch(chatMessage::contains)) + + if (config.screenshotPet() && PET_MESSAGES.stream().anyMatch(chatMessage::contains)) { String fileName = "Pet " + TIME_FORMAT.format(new Date()); takeScreenshot(fileName);