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,11 +458,19 @@ public class ClueScrollPlugin extends Plugin
if (developerMode && commandExecuted.getCommand().equals("clue")) if (developerMode && commandExecuted.getCommand().equals("clue"))
{ {
String text = Strings.join(commandExecuted.getArguments(), " "); String text = Strings.join(commandExecuted.getArguments(), " ");
if (text.isEmpty())
{
resetClue(true);
}
else
{
ClueScroll clueScroll = findClueScroll(text); ClueScroll clueScroll = findClueScroll(text);
log.debug("Found clue scroll for '{}': {}", text, clueScroll); log.debug("Found clue scroll for '{}': {}", text, clueScroll);
updateClue(clueScroll); updateClue(clueScroll);
} }
} }
}
public BufferedImage getClueScrollImage() public BufferedImage getClueScrollImage()
{ {