Skip to content

Commit

Permalink
Pests Destroyer - Get infested plots fix
Browse files Browse the repository at this point in the history
  • Loading branch information
May2Beez authored Mar 26, 2024
1 parent 582a86c commit 6c32a3b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,10 @@ private void checkInfestedPlotsTabList(String cleanedLine) {
try {
String[] split = cleanedLine.trim().split(" ");
infestedPlots.clear();
for (int i = 2; i < split.length; i++) {
infestedPlots.add(Integer.parseInt(split[i].replace(",", "")));
for (int i = 1; i < split.length; i++) {
try {
infestedPlots.add(Integer.parseInt(split[i].replace(",", "")));
} catch (Exception ignored) {}
}
} catch (Exception ignored) {
infestedPlots.clear();
Expand Down

0 comments on commit 6c32a3b

Please sign in to comment.