Skip to content

Commit 086024c

Browse files
committed
chore (microbot-plugin): resolve copilot recommendations
1 parent 8e48978 commit 086024c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runelite-client/src/main/java/net/runelite/client/plugins/microbot/MicrobotPlugin.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.awt.image.BufferedImage;
66
import java.lang.reflect.InvocationTargetException;
77
import java.time.Instant;
8+
import java.util.Objects;
89
import javax.inject.Inject;
910
import javax.inject.Provider;
1011
import javax.inject.Singleton;
@@ -235,7 +236,7 @@ private void onMenuEntryAdded(MenuEntryAdded event)
235236
}
236237
catch (IllegalAccessException | InvocationTargetException e)
237238
{
238-
System.out.println(e.getMessage());
239+
log.error(e.getMessage());
239240
}
240241
}
241242
Microbot.getClient().getMenu().setMenuEntries(new MenuEntry[]{entry});
@@ -271,7 +272,7 @@ public void onConfigChanged(ConfigChanged ev)
271272
{
272273
if (ev.getKey().equals("displayPouchCounter"))
273274
{
274-
if (ev.getNewValue() == "true")
275+
if (Objects.equals(ev.getNewValue(), "true"))
275276
{
276277
Microbot.getPouchScript().startUp();
277278
}

0 commit comments

Comments
 (0)