Implemented "Shift + Left Click" for ItemDiviner to get previous Ritual
This commit is contained in:
parent
297567a417
commit
f7026a0800
2 changed files with 49 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue