Commit f6d5fb19 authored by DancingSnow's avatar DancingSnow Committed by Melledy
Browse files

fix giveart command when times about 200, account will crash

parent 29eedb50
...@@ -56,6 +56,9 @@ public final class GiveArtifactCommand implements CommandHandler { ...@@ -56,6 +56,9 @@ public final class GiveArtifactCommand implements CommandHandler {
if ((arr = it.split(",")).length == 2) { if ((arr = it.split(",")).length == 2) {
it = arr[0]; it = arr[0];
n = Integer.parseInt(arr[1]); n = Integer.parseInt(arr[1]);
if (n > 200) {
n = 200;
}
} }
appendPropIdList.addAll(Collections.nCopies(n, Integer.parseInt(it))); appendPropIdList.addAll(Collections.nCopies(n, Integer.parseInt(it)));
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment