mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 08:44:45 +00:00
fix giveart command when times about 200, account will crash
This commit is contained in:
parent
29eedb5075
commit
f6d5fb1945
@ -56,6 +56,9 @@ public final class GiveArtifactCommand implements CommandHandler {
|
||||
if ((arr = it.split(",")).length == 2) {
|
||||
it = arr[0];
|
||||
n = Integer.parseInt(arr[1]);
|
||||
if (n > 200) {
|
||||
n = 200;
|
||||
}
|
||||
}
|
||||
appendPropIdList.addAll(Collections.nCopies(n, Integer.parseInt(it)));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user