Implemented "Shift + Left Click" for ItemDiviner to get previous Ritual

This commit is contained in:
Berknam 2014-10-09 00:17:13 +01:00
parent 297567a417
commit f7026a0800
2 changed files with 49 additions and 0 deletions

View file

@ -384,6 +384,27 @@ public class Rituals
return firstKey;
}
public static String getPreviousRitualKey(String key)
{
boolean hasSpotted = false;
String lastKey = keyList.get(keyList.size()-1);
for(String str : keyList)
{
if(str.equals(key))
{
hasSpotted = true;
}
if(hasSpotted)
{
return lastKey;
}
lastKey = str;
}
return lastKey;
}
public static MRSRenderer getRendererForKey(String ritualID)
{