ClueScrollPlugin: Reset clue on empty dev command

Fixes runelite/runelite#10775
This commit is contained in:
Jordan Atwood
2020-02-11 13:52:42 -08:00
parent 8137fd87c2
commit 1b0cf969d7

View File

@@ -458,9 +458,17 @@ public class ClueScrollPlugin extends Plugin
if (developerMode && commandExecuted.getCommand().equals("clue"))
{
String text = Strings.join(commandExecuted.getArguments(), " ");
ClueScroll clueScroll = findClueScroll(text);
log.debug("Found clue scroll for '{}': {}", text, clueScroll);
updateClue(clueScroll);
if (text.isEmpty())
{
resetClue(true);
}
else
{
ClueScroll clueScroll = findClueScroll(text);
log.debug("Found clue scroll for '{}': {}", text, clueScroll);
updateClue(clueScroll);
}
}
}