This commit is contained in:
Jesse Boyd 2016-06-09 18:06:00 +10:00
parent 880e084006
commit f41c7dc1f6

View File

@ -1854,7 +1854,7 @@ public class PS {
String[] split = lastVersionString.split("\\."); String[] split = lastVersionString.split("\\.");
this.lastVersion = new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])}; this.lastVersion = new int[]{Integer.parseInt(split[0]), Integer.parseInt(split[1]), Integer.parseInt(split[2])};
} }
if (checkVersion(new int[]{3,4,0}, lastVersion)) { if (lastVersion != null && checkVersion(new int[]{3,4,0}, lastVersion)) {
Settings.convertLegacy(configFile); Settings.convertLegacy(configFile);
if (config.contains("worlds")) { if (config.contains("worlds")) {
ConfigurationSection worldSection = config.getConfigurationSection("worlds"); ConfigurationSection worldSection = config.getConfigurationSection("worlds");