Remove some criminal if checks (#3261)

This commit is contained in:
DrSmugleaf
2021-02-16 20:14:21 +01:00
committed by GitHub
parent b30bccc03b
commit 3c54c755ce
3 changed files with 9 additions and 11 deletions

View File

@@ -433,7 +433,7 @@ namespace Content.Client.ParticleAccelerator
_shouldContinueAnimating = false;
_alarmControl.StopAnimation("warningAnim");
_alarmControl.Visible = false;
if (maxState == ParticleAcceleratorPowerState.Level3 && enabled == true && assembled == true)
if (maxState == ParticleAcceleratorPowerState.Level3 && enabled && assembled)
{
_shouldContinueAnimating = true;
_alarmControl.PlayAnimation(_alarmControlAnimation, "warningAnim");