[Idea]: Folia support for OpenInv #196

Closed
reabuc wants to merge 137 commits from master into master
72 changed files with 6728 additions and 2739 deletions
Showing only changes of commit 70d8999b48 - Show all commits

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2011-2021 lishid. All rights reserved. * Copyright (C) 2011-2022 lishid. All rights reserved.
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ public class LanguageManager {
return loaded; return loaded;
} }
InputStream resourceStream = plugin.getResource(locale + ".yml"); InputStream resourceStream = plugin.getResource("locale/" + locale + ".yml");
YamlConfiguration localeConfigDefaults; YamlConfiguration localeConfigDefaults;
if (resourceStream == null) { if (resourceStream == null) {
localeConfigDefaults = new YamlConfiguration(); localeConfigDefaults = new YamlConfiguration();