Merge pull request #14 from SagePtr/patch-1
Fixed an exception when using CLI's --patch arg without any mods
This commit is contained in:
commit
4bb3a3ddb9
1 changed files with 15 additions and 13 deletions
|
@ -233,6 +233,7 @@ public class SlipstreamCLI {
|
|||
log.info( "Patching..." );
|
||||
|
||||
List<File> modFiles = new ArrayList<File>();
|
||||
if ( slipstreamCmd.modFileNames != null ) {
|
||||
for ( String modFileName : slipstreamCmd.modFileNames ) {
|
||||
File modFile = new File( modsDir, modFileName );
|
||||
|
||||
|
@ -250,6 +251,7 @@ public class SlipstreamCLI {
|
|||
|
||||
modFiles.add( modFile );
|
||||
}
|
||||
}
|
||||
|
||||
boolean globalPanic = slipstreamCmd.globalPanic;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue