From fb775a92aefb4048288837bc8b79019ad1896de1 Mon Sep 17 00:00:00 2001 From: matt123337 Date: Wed, 16 Jul 2014 14:04:10 -0400 Subject: [PATCH] Update Menu.java Added changes from patch-1 --- src/org/rev317/min/api/methods/Menu.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/org/rev317/min/api/methods/Menu.java b/src/org/rev317/min/api/methods/Menu.java index edd22cf..83d126f 100644 --- a/src/org/rev317/min/api/methods/Menu.java +++ b/src/org/rev317/min/api/methods/Menu.java @@ -170,23 +170,22 @@ public class Menu { * @param cmd3 */ public static void sendAction(int action, int cmd1, int cmd2, int cmd3) { - sendAction(action, cmd1, cmd2, cmd3, 0); + sendAction(action, cmd1, cmd2, cmd3, 1); } - + /** * Sends an action to the client * @param action * @param cmd1 * @param cmd2 * @param cmd3 - * @param cmd4 + * @param index */ - public static void sendAction(int action, int cmd1, int cmd2, int cmd3, int cmd4) { + public static void sendAction(int action, int cmd1, int cmd2, int cmd3, int index) { if (constants == null) { constants = Context.getInstance().getHookParser().getConstants(); } - int index = 0; Client client = Loader.getClient(); client.getMenuAction1()[index] = cmd1;