Skip to content

Commit 9512f15

Browse files
committed
exit early when there are no targets to patch
1 parent eb1a778 commit 9512f15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NetcodePatcher.MSBuild.Tasks/NetcodePatchTask.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public override bool Execute()
4343
.InformationalVersion;
4444
Serilog.Log.Information("Initializing NetcodePatcher v{Version:l}", toolVersion);
4545

46+
if (Patch.Length < 1)
47+
{
48+
Serilog.Log.Information("No targets specified for Netcode patching. NetcodePatcher done.");
49+
return true;
50+
}
51+
4652
var noOverwrite = false;
4753
if (!string.IsNullOrEmpty(NoOverwrite))
4854
{

0 commit comments

Comments
 (0)