ClueScrollPlugin: Reset clue on empty dev command
Fixes runelite/runelite#10775
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user