File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
runelite-client/src/main/java/net/runelite/client/plugins/microbot Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55import java .awt .image .BufferedImage ;
66import java .lang .reflect .InvocationTargetException ;
77import java .time .Instant ;
8+ import java .util .Objects ;
89import javax .inject .Inject ;
910import javax .inject .Provider ;
1011import 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 }
You can’t perform that action at this time.
0 commit comments