fix: working on fixing
This commit is contained in:
parent
7b4f6e102a
commit
48ff132f6f
1 changed files with 3 additions and 4 deletions
|
@ -35,10 +35,9 @@ public class LocaleManager {
|
||||||
final InputStream resource = instance.getResource("locale_en.properties");
|
final InputStream resource = instance.getResource("locale_en.properties");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (resource != null) {
|
|
||||||
instance.getLogger().info("Installing custom language file as \"custom.properties\"");
|
instance.getLogger().info("Installing custom language file as \"custom.properties\"");
|
||||||
|
// TODO: 12/26/22 This throws an error!
|
||||||
Files.copy(resource, Paths.get(file.toURI()), StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(resource, Paths.get(file.toURI()), StandardCopyOption.REPLACE_EXISTING);
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// TODO: 12/19/22 Handle error
|
// TODO: 12/19/22 Handle error
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
Loading…
Reference in a new issue