Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

Commit 85a142a

Browse files
committed
Fix Travis build
1 parent f3d38af commit 85a142a

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

src/main/java/org/feathercore/protogen/Bootstrap.java

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,30 @@ public class Bootstrap {
4040
public static void main(String[] args) throws Exception {
4141
if (args.length == 0) {
4242
System.out.println("Choose what to generate:");
43-
System.out.println(" sounds, particles or packets");
43+
System.out.println(" sounds, particles, packets or all");
4444
return;
4545
}
4646

4747
FileUtil.deleteRecursive(VALID_DIR);
4848
FileUtil.deleteRecursive(BROKEN_DIR);
4949

50-
for (int i = 0; i < args.length; i++) {
51-
switch (args[i].toLowerCase()) {
52-
case "sounds":
53-
genSounds();
54-
break;
55-
case "particles":
56-
genParticles();
57-
break;
58-
case "packets":
59-
genPackets();
60-
break;
50+
if (args.length == 1 && args[0].equalsIgnoreCase("all")) {
51+
genSounds();
52+
genParticles();
53+
genPackets();
54+
} else {
55+
for (int i = 0; i < args.length; i++) {
56+
switch (args[i].toLowerCase()) {
57+
case "sounds":
58+
genSounds();
59+
break;
60+
case "particles":
61+
genParticles();
62+
break;
63+
case "packets":
64+
genPackets();
65+
break;
66+
}
6167
}
6268
}
6369
}

0 commit comments

Comments
 (0)