Rework MenuManager to only swap the top entry, once per client tick (#749)
* Rework MenuManager to only swap the top entry, once per client tick
This commit is contained in:
@@ -68,7 +68,7 @@ public class SecureRandomCallable implements Callable {
|
||||
int var5;
|
||||
int var6;
|
||||
for(var5 = 0; var5 < Client.menuOptionsCount; ++var5) {
|
||||
if(WorldMapManager.method672(Client.menuOpcodes[var5])) {
|
||||
if(WorldMapManager.isWidgetMenuOpcode(Client.menuOpcodes[var5])) {
|
||||
if(var5 < Client.menuOptionsCount - 1) {
|
||||
for(var6 = var5; var6 < Client.menuOptionsCount - 1; ++var6) {
|
||||
Client.menuActions[var6] = Client.menuActions[var6 + 1];
|
||||
|
||||
Reference in New Issue
Block a user