Skip to content

Commit 64a0167

Browse files
committed
Fixed if statement
1 parent ff9d1eb commit 64a0167

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/me/TechsCode/GradeBasePlugin/tasks/GenerateMetaFilesTask.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ private void createPluginYml(File resourcesFolder, String projectName, String pr
5959
if (libraries != null && !libraries.isEmpty()){
6060
writer.println("libraries:");
6161
libraries.stream().map(library -> "- " + library).forEach(writer::println);
62+
} else {
63+
writer.println("libraries: []");
6264
}
6365
writer.close();
6466
}
@@ -78,6 +80,8 @@ private void createBungeeYml(File resourcesFolder, String projectName, String pr
7880
if (libraries != null && !libraries.isEmpty()) {
7981
writer.println("libraries:");
8082
libraries.stream().map(library -> "- " + library).forEach(writer::println);
83+
} else {
84+
writer.println("libraries: []");
8185
}
8286
writer.close();
8387
}

0 commit comments

Comments
 (0)