mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
Fix warnings related to non-exhaustive pattern matching. (#31763)
old man shakes fist at modern syntax (cherry picked from commit de13ff96639d8da5ca45b214e0c4df5ebf20856a)
This commit is contained in:
@@ -165,6 +165,7 @@ public sealed partial class ParticleAcceleratorSystem
|
||||
or ParticleAcceleratorPowerState.Level1
|
||||
or ParticleAcceleratorPowerState.Level2 => LogImpact.Medium,
|
||||
ParticleAcceleratorPowerState.Level3 => LogImpact.Extreme,
|
||||
_ => throw new IndexOutOfRangeException(nameof(strength)),
|
||||
};
|
||||
|
||||
_adminLogger.Add(LogType.Action, impact, $"{ToPrettyString(player):player} has set the strength of {ToPrettyString(uid)} to {strength}");
|
||||
|
||||
Reference in New Issue
Block a user