diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Language.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Language.java index 25231d7..56bfb7f 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Language.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Language.java @@ -17,6 +17,7 @@ package at.pcgamingfreaks.Minepacks.Bukkit.Database; +import at.pcgamingfreaks.YamlFileManager; import at.pcgamingfreaks.yaml.YAML; import org.bukkit.ChatColor; @@ -38,11 +39,11 @@ public Language(JavaPlugin plugin) protected void doUpdate() {} @Override - protected void doUpgrade(at.pcgamingfreaks.Language oldLang) + protected void doUpgrade(YamlFileManager oldLang) { if(oldLang.getVersion() < 10) // Pre v2.0 versions { - YAML oldYAML = oldLang.getLang(), newYAML = getLang(); + YAML oldYAML = oldLang.getYaml(), newYAML = getLang(); Map simpleConverter = new LinkedHashMap<>(), advancedConverter = new LinkedHashMap<>(); String[] keys; String helper;