From d477b2ed7670ff73ba53e050210d3fefd4e0b8f7 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Mon, 30 Apr 2018 02:03:06 +0200 Subject: [PATCH] Bugfix --- .../pcgamingfreaks/Minepacks/Bukkit/Database/Language.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;