Prevent IOB

This commit is contained in:
TheMode 2021-07-18 02:13:20 +02:00
parent 97104df793
commit a07177fbf0

View File

@ -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;
}
}