Skip to content

Commit

Permalink
- Fix regression from 0.98.1.1 causing java.lang.NullPointerException
Browse files Browse the repository at this point in the history
on load.
  • Loading branch information
LlmDl committed Mar 19, 2022
1 parent e56a9dc commit 79890d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7352,4 +7352,5 @@ v0.92.0.11:
- Bump language files to 0.146.
- Fix water being able to be placed in waterloggable blocks on plot borders, courtesy of Warriorrrr with PR #5736.
0.98.1.2:
- Fix outpost spawns being able to be made in other towns in rare conditions.
- Fix outpost spawns being able to be made in other towns in rare conditions.
- Fix regression from 0.98.1.1 causing java.lang.NullPointerException on load.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.palmergames.bukkit.config.CommentedConfiguration;
import com.palmergames.bukkit.config.ConfigNodes;
import com.palmergames.bukkit.towny.Towny;
import com.palmergames.bukkit.towny.TownyMessaging;
import com.palmergames.bukkit.towny.TownySettings;
import com.palmergames.bukkit.towny.TownyUniverse;
import com.palmergames.bukkit.towny.object.TownyWorld;
import com.palmergames.bukkit.towny.permissions.TownyPerms;
Expand Down Expand Up @@ -46,7 +46,7 @@ public ConfigMigrator(@NotNull CommentedConfiguration config, @NotNull String fi
this.townyperms = TownyPerms.getTownyPermsFile();
this.earlyRun = earlyRun;
this.plugin = Towny.getPlugin();
this.lastRunVersion = Version.fromString(TownySettings.getLastRunVersion());
this.lastRunVersion = Version.fromString(config.getString(ConfigNodes.LAST_RUN_VERSION.getRoot(), "0.0.0.0"));
}

/**
Expand Down

0 comments on commit 79890d1

Please sign in to comment.