return immidiatly if we are in correct menu

This commit is contained in:
Sandra Keßler 2017-08-11 23:59:05 +02:00
parent 1c1ea14b3c
commit abe4c1ff3a

View file

@ -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();