mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +01:00
Cleanup ItemNameResolver generation
This commit is contained in:
parent
eda74e4da4
commit
a9c930b393
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 GeorgH93
|
||||
* Copyright (C) 2022 GeorgH93
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -65,20 +65,7 @@ public ItemFilter(final Minepacks plugin)
|
||||
|
||||
/*if[STANDALONE]
|
||||
itemNameResolver = new ItemNameResolver();
|
||||
if (at.pcgamingfreaks.Bukkit.MCVersion.isOlderThan(at.pcgamingfreaks.Bukkit.MCVersion.MC_1_13))
|
||||
{
|
||||
at.pcgamingfreaks.Bukkit.Language itemNameLanguage = new at.pcgamingfreaks.Bukkit.Language(plugin, 1, 1, java.io.File.separator + "lang", "items_", "legacy_items_");
|
||||
itemNameLanguage.setFileDescription("item name language");
|
||||
itemNameLanguage.load(plugin.getConfiguration().getLanguage(), at.pcgamingfreaks.YamlFileUpdateMethod.OVERWRITE);
|
||||
itemNameResolver.loadLegacy(itemNameLanguage, plugin.getLogger());
|
||||
}
|
||||
else
|
||||
{
|
||||
at.pcgamingfreaks.Bukkit.Language itemNameLanguage = new at.pcgamingfreaks.Bukkit.Language(plugin, 2, java.io.File.separator + "lang", "items_");
|
||||
itemNameLanguage.setFileDescription("item name language");
|
||||
itemNameLanguage.load(plugin.getConfiguration().getLanguage(), at.pcgamingfreaks.YamlFileUpdateMethod.OVERWRITE);
|
||||
itemNameResolver.load(itemNameLanguage, plugin.getLogger());
|
||||
}
|
||||
itemNameResolver.load(plugin, plugin.getConfiguration());
|
||||
else[STANDALONE]*/
|
||||
itemNameResolver = at.pcgamingfreaks.PluginLib.Bukkit.ItemNameResolver.getInstance();
|
||||
/*end[STANDALONE]*/
|
||||
|
Loading…
Reference in New Issue
Block a user