Change MenuEntry type to int

We don't have all of the types in MenuAction and it causes them to get mapped to UNKNOWN when translated back and forth with the API
This commit is contained in:
Adam
2018-04-02 08:05:57 -04:00
parent 5a74798833
commit 46d66d7823
5 changed files with 23 additions and 74 deletions

View File

@@ -327,7 +327,7 @@ public abstract class RSClientMixin implements RSClient
entry.setOption(menuOptions[i]);
entry.setTarget(menuTargets[i]);
entry.setIdentifier(menuIdentifiers[i]);
entry.setType(MenuAction.of(menuTypes[i]));
entry.setType(menuTypes[i]);
entry.setParam0(params0[i]);
entry.setParam1(params1[i]);
}
@@ -351,7 +351,7 @@ public abstract class RSClientMixin implements RSClient
menuOptions[count] = entry.getOption();
menuTargets[count] = entry.getTarget();
menuIdentifiers[count] = entry.getIdentifier();
menuTypes[count] = entry.getType().getId();
menuTypes[count] = entry.getType();
params0[count] = entry.getParam0();
params1[count] = entry.getParam1();
++count;