Add limit checks for t20 as well

This commit is contained in:
Joshua Sigona 2021-03-03 08:34:18 +09:00
parent 5f2f48aae3
commit 8f928fca05
2 changed files with 10 additions and 3 deletions

View File

@ -395,9 +395,16 @@ public class App
if (!error1) { if (!error1) {
for (int i=0;i<20;i++) { for (int i=0;i<20;i++) {
new Thread( if (lastScores[i]==0||(
new SubmitThread(t20names[i],t20desc[i],t20scores[i],EVENT,i+1)) StringUtils.isNumeric(lowerTierScores[i])&&
.start(); lastScores[i]<Integer.parseInt(lowerTierScores[i]))) {
new Thread(
new SubmitThread(t20names[i],t20desc[i],t20scores[i],EVENT,i+1))
.start();
lastScores[i]=Integer.parseInt(lowerTierScores[i]);
} else {
System.out.println("No update required for rank "+(i+1));
}
} }
} else { } else {
System.out.println("Cannot submit t20 scores. Invalid array params."); System.out.println("Cannot submit t20 scores. Invalid array params.");

Binary file not shown.