mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-08 08:21:50 +01:00
Prevent IOB
This commit is contained in:
parent
97104df793
commit
a07177fbf0
@ -356,7 +356,7 @@ public final class CommandManager {
|
||||
final List<DeclareCommandsPacket.Node[]> storedNodes = storedArgumentsNodes.get(indexed);
|
||||
|
||||
argChildren = new IntArrayList();
|
||||
lastNodes = storedNodes.get(index);
|
||||
lastNodes = storedNodes.get(storedNodes.size() >= index ? index : 1);
|
||||
foundSharedPart = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user