fix: don't retroactively drain disabled batteries (#37364)
* fix: don't retroactively drain disabled batteries If something that used PowerCellDraw temporarily disabled said draw, once it became re-enabled the system would play catch-up trying to drain the battery for all the time since the component was disabled. * fixup! fix: don't retroactively drain disabled batteries
This commit is contained in:
@@ -38,7 +38,6 @@ public sealed class ToggleCellDrawSystem : EntitySystem
|
||||
{
|
||||
var uid = ent.Owner;
|
||||
var draw = Comp<PowerCellDrawComponent>(uid);
|
||||
_cell.QueueUpdate((uid, draw));
|
||||
_cell.SetDrawEnabled((uid, draw), args.Activated);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user