return immidiatly if we are in correct menu
This commit is contained in:
parent
1c1ea14b3c
commit
abe4c1ff3a
1 changed files with 2 additions and 0 deletions
|
@ -475,6 +475,8 @@ public class RuffyScripter {
|
|||
|
||||
public boolean enterMenu(MenuType startType, MenuType targetType, byte key, long timeout)
|
||||
{
|
||||
if(currentMenu.getType()==targetType)
|
||||
return true;
|
||||
if(currentMenu==null || currentMenu.getType() != startType)
|
||||
return false;
|
||||
long start = System.currentTimeMillis();
|
||||
|
|
Loading…
Reference in a new issue