mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 07:11:14 +00:00
dont load lang files in LangUtil
This commit is contained in:
@@ -18,12 +18,6 @@ public final class LangUtil {
|
|||||||
public static void load(String langID, TerraPlugin main) {
|
public static void load(String langID, TerraPlugin main) {
|
||||||
Logger logger = main.logger();
|
Logger logger = main.logger();
|
||||||
File file = new File(main.getDataFolder(), "lang");
|
File file = new File(main.getDataFolder(), "lang");
|
||||||
try(JarFile jar = main.getModJar()) {
|
|
||||||
copyResourcesToDirectory(jar, "lang", file.toString());
|
|
||||||
} catch(IOException | URISyntaxException e) {
|
|
||||||
main.getDebugLogger().severe("Failed to dump language files!");
|
|
||||||
main.getDebugLogger().stack(e);
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
File file1 = new File(file, langID + ".yml");
|
File file1 = new File(file, langID + ".yml");
|
||||||
logger.info(file1.getAbsolutePath());
|
logger.info(file1.getAbsolutePath());
|
||||||
|
|||||||
Reference in New Issue
Block a user