mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
@@ -43,7 +43,15 @@ public final class NpcActionVerificationHandler extends MessageHandler<NpcAction
|
||||
}
|
||||
|
||||
NpcDefinition definition = npc.getDefinition();
|
||||
if (message.getOption() >= definition.getInteractions().length) {
|
||||
String[] actions = definition.getInteractions();
|
||||
int option = message.getOption();
|
||||
|
||||
if (option < 0 || option >= actions.length) {
|
||||
message.terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
if ("null".equals(actions[option])) {
|
||||
message.terminate();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user