client-mixin: add logger for null option/target in MEA event.

This commit is contained in:
Ganom
2022-04-25 05:42:24 -04:00
parent fb18f00ee0
commit 85400b6247

View File

@@ -1073,6 +1073,18 @@ public abstract class RSClientMixin implements RSClient
rl$menuEntries[tmpOptionsCount].setConsumer(null);
}
if (menuOption == null || menuTarget == null)
{
client.getLogger().warn("We're probably about to crash: menu op {} targ {} action {} id {} p0 {} p1 {}",
menuOption,
menuTarget,
menuOpcode,
menuIdentifier,
menuArgument1,
menuArgument2
);
}
MenuEntryAdded menuEntryAdded = new MenuEntryAdded(
menuOption,
menuTarget,