]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed godmode persisting (#14934)
authorDawid Bla <46636558+DawBla@users.noreply.github.com>
Tue, 28 Mar 2023 23:59:59 +0000 (01:59 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 23:59:59 +0000 (10:59 +1100)
Content.Server/Damage/Systems/GodmodeSystem.cs

index d7c6b800aeabc2b9056df195c64d43d7a6d9f769..87209afef26fbd33784e10509125932d3de6379d 100644 (file)
@@ -74,6 +74,8 @@ namespace Content.Server.Damage.Systems
             {
                 _damageable.SetDamage(uid, damageable, godmode.OldDamage);
             }
+
+            RemComp<GodmodeComponent>(uid);
         }
 
         /// <summary>