]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix battery trick debug assert (#24408)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Mon, 22 Jan 2024 22:09:33 +0000 (23:09 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 22:09:33 +0000 (17:09 -0500)
* Why

* Missed a spot

Content.Server/Administration/Systems/AdminVerbSystem.Tools.cs

index 4b64195e939d517e87dd1e9a812cf3ddc0a2f6a9..7dbbacb34090fcf4ac0a18712da7cd1131957497 100644 (file)
@@ -170,7 +170,6 @@ public sealed partial class AdminVerbSystem
                     Act = () =>
                     {
                         _batterySystem.SetCharge(args.Target, battery.MaxCharge, battery);
-                        Dirty(args.Target, battery);
                     },
                     Impact = LogImpact.Medium,
                     Message = Loc.GetString("admin-trick-refill-battery-description"),
@@ -186,7 +185,6 @@ public sealed partial class AdminVerbSystem
                     Act = () =>
                     {
                         _batterySystem.SetCharge(args.Target, 0, battery);
-                        Dirty(args.Target, battery);
                     },
                     Impact = LogImpact.Medium,
                     Message = Loc.GetString("admin-trick-drain-battery-description"),
@@ -556,7 +554,6 @@ public sealed partial class AdminVerbSystem
                             continue;
                         var battery = EnsureComp<BatteryComponent>(ent);
                         _batterySystem.SetCharge(ent, battery.MaxCharge, battery);
-                        Dirty(ent, battery);
                     }
                 },
                 Impact = LogImpact.Extreme,
@@ -578,7 +575,6 @@ public sealed partial class AdminVerbSystem
                             continue;
                         var battery = EnsureComp<BatteryComponent>(ent);
                         _batterySystem.SetCharge(ent, 0, battery);
-                        Dirty(ent, battery);
                     }
                 },
                 Impact = LogImpact.Extreme,