Allow "degree" and "minute" in coordinate clues

Fixes runelite/runelite#2233
This commit is contained in:
Jordan Atwood
2018-05-01 17:25:35 -07:00
parent 443cc7569f
commit 2e51181bc0

View File

@@ -414,6 +414,7 @@ public class ClueScrollPlugin extends Plugin
/**
* Example input: "00 degrees 00 minutes north 07 degrees 13 minutes west"
* Note: some clues use "1 degree" instead of "01 degrees"
*/
private CoordinateClue coordinatesToWorldPoint(String text)
{
@@ -425,7 +426,7 @@ public class ClueScrollPlugin extends Plugin
return null;
}
if (!splitText[1].equals("degrees") || !splitText[3].equals("minutes"))
if (!splitText[1].startsWith("degree") || !splitText[3].startsWith("minute"))
{
log.warn("\"" + text + "\" is not a well formed coordinate string");
return null;