Client: menu changes (#1553)
* Remove sortMenuEntries as it is called before it would be used anyway * Modify the menuentries in MenuOpened rather than setting twice * menus: Corp, Devtools, Friend notes/tags, Grand exchange * menus: Manager, ground items
This commit is contained in:
@@ -1419,10 +1419,14 @@ public abstract class RSClientMixin implements RSClient
|
||||
@MethodHook("openMenu")
|
||||
public void menuOpened(int x, int y)
|
||||
{
|
||||
sortMenuEntries();
|
||||
final MenuOpened event = new MenuOpened();
|
||||
event.setMenuEntries(getMenuEntries());
|
||||
callbacks.post(MenuOpened.class, event);
|
||||
|
||||
if (event.isModified())
|
||||
{
|
||||
setMenuEntries(event.getMenuEntries());
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user