mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-28 17:48:22 +01:00
Bugfix
This commit is contained in:
parent
d663fb1d22
commit
d477b2ed76
@ -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<String, String> simpleConverter = new LinkedHashMap<>(), advancedConverter = new LinkedHashMap<>();
|
||||
String[] keys;
|
||||
String helper;
|
||||
|
Loading…
Reference in New Issue
Block a user