Skip to content

Commit

Permalink
Merge pull request #50 from TownyAdvanced/loading_fix
Browse files Browse the repository at this point in the history
Loading fix
  • Loading branch information
Goosius1 committed Jun 29, 2023
2 parents 43a7c72 + 87e8ed6 commit 88d23fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.townyadvanced</groupId>
<artifactId>TownyProvinces</artifactId>
<version>1.9.0</version>
<version>1.9.1</version>
<name>townyprovinces</name> <!-- Leave lower-cased -->

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public static void loadProvince(File regionDefinitionFile) {
isLandValidationRequested = Boolean.parseBoolean(fileEntries.get("is_land_validation_requested"));
}
if(fileEntries.containsKey("new_town_cost")) {
newTownCost = Double.parseDouble(fileEntries.get("new_town_cost_per_chunk"));
newTownCost = Double.parseDouble(fileEntries.get("new_town_cost"));
}
if(fileEntries.containsKey("upkeep_town_cost")) {
upkeepTownCost = Double.parseDouble(fileEntries.get("upkeep_town_cost_per_chunk"));
upkeepTownCost = Double.parseDouble(fileEntries.get("upkeep_town_cost"));
}
//Create province
Province province = new Province(homeBlock, isSea, isLandValidationRequested, newTownCost, upkeepTownCost);
Expand Down

0 comments on commit 88d23fe

Please sign in to comment.