From 68556c42b4b4f872df8ded21da2fd3c4cdd5e651 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Tue, 11 Mar 2025 22:33:10 +0000 Subject: [PATCH] ignore duplicate flags --- Bloxstrap/LaunchSettings.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bloxstrap/LaunchSettings.cs b/Bloxstrap/LaunchSettings.cs index 1bb312f..625f32b 100644 --- a/Bloxstrap/LaunchSettings.cs +++ b/Bloxstrap/LaunchSettings.cs @@ -119,6 +119,12 @@ namespace Bloxstrap continue; } + if (flag.Active) + { + App.Logger.WriteLine(LOG_IDENT, $"Tried to set {identifier} flag twice"); + continue; + } + flag.Active = true; if (i < Args.Length - 1 && Args[i+1] is string nextArg && !nextArg.StartsWith('-'))