Skip to content

Commit

Permalink
- Fix Towns reporting an incorrect Town level number.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Feb 25, 2025
1 parent 651fc17 commit fcf9176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,12 @@ public static int getTownLevelWhichIsNotManuallySet(int residents, Town town) {
if (town.isRuined())
return 0;

int i = 0;
int i = TownySettings.getTownLevelMax() - 1; // Remove one in order to get the index of an array.
for (int level : configTownLevel.keySet()) {
if (residents >= level)
return i;
i++;

i--;
}
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10270,4 +10270,5 @@ v0.92.0.11:
0.101.1.5:
- Fix edge-case scenario where towns that have grown via purchased townblocks are prevented from merging with another town.
- Closes #7719.
- Fix conquered towns not losing their conquered status when their nation is removed.
- Fix conquered towns not losing their conquered status when their nation is removed.
- Fix Towns reporting an incorrect Town level number.

0 comments on commit fcf9176

Please sign in to comment.