From 48ff132f6f1ba65eaf6623582ac6b7062c7e4e78 Mon Sep 17 00:00:00 2001 From: aro Date: Mon, 26 Dec 2022 21:48:04 +0100 Subject: [PATCH] fix: working on fixing --- .../main/java/net/artelnatif/nicko/i18n/LocaleManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nicko-core/src/main/java/net/artelnatif/nicko/i18n/LocaleManager.java b/nicko-core/src/main/java/net/artelnatif/nicko/i18n/LocaleManager.java index 89ab54e..6fcf13b 100644 --- a/nicko-core/src/main/java/net/artelnatif/nicko/i18n/LocaleManager.java +++ b/nicko-core/src/main/java/net/artelnatif/nicko/i18n/LocaleManager.java @@ -35,10 +35,9 @@ public class LocaleManager { final InputStream resource = instance.getResource("locale_en.properties"); try { - if (resource != null) { - instance.getLogger().info("Installing custom language file as \"custom.properties\""); - Files.copy(resource, Paths.get(file.toURI()), StandardCopyOption.REPLACE_EXISTING); - } + 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); } catch (IOException e) { // TODO: 12/19/22 Handle error throw new RuntimeException(e);