Reset clue on unknown clues

If we opened clue but it is uknown simply reset clue overlay

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-04-23 21:47:51 +02:00
parent 4de74743df
commit dc10744c5e

View File

@@ -352,7 +352,16 @@ public class ClueScrollPlugin extends Plugin
return emoteClue;
}
return FairyRingClue.forText(text);
final FairyRingClue fairyRingClue = FairyRingClue.forText(text);
if (fairyRingClue != null)
{
return fairyRingClue;
}
// We have unknown clue, reset
resetClue();
return null;
}
}