diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/ASLanguageManager.java b/AreaShop/src/main/java/me/wiefferink/areashop/ASLanguageManager.java index 3f191914..85a8d5fa 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/ASLanguageManager.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/ASLanguageManager.java @@ -103,11 +103,8 @@ private void saveDefaults() { InputStream input = jar.getInputStream(entry); OutputStream output = new FileOutputStream(targetFile) ) { - int read; - byte[] bytes = new byte[1024]; - while((read = input.read(bytes)) != -1) { - output.write(bytes, 0, read); - } + byte[] bytes = input.readAllBytes(); + output.write(bytes); } catch(IOException e) { Log.warn("Something went wrong saving a default language file: " + targetFile.getAbsolutePath()); }