Skip to content

Commit

Permalink
Remove exception introduced in 20fc7e8
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPizzaDev committed Aug 22, 2023
1 parent c4c2c43 commit d9f4972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void replaceTextures(World keyName, String replacementName) {
boolean replaced = false;

try {
BufferedReader reader = new BufferedReader(new FileReader(texFile));
var reader = new BufferedReader(new FileReader(texFile));
try {
while (reader.ready()) {
String line = reader.readLine();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public String[] getFileNames() {
try {
return getFiles().map(path -> path.getFileName().toString()).toArray(String[]::new);
} catch (IOException e) {
throw new RuntimeException(e);
return null;
}
}

Expand All @@ -52,7 +52,7 @@ public void loadScripts(ProgressListener progressListener) {
try {
files = this.getFiles().map(Path::toFile).toArray(File[]::new);
} catch (IOException e) {
throw new RuntimeException(e);
return;
}

if (files.length == 0) {
Expand Down

0 comments on commit d9f4972

Please sign in to comment.