Remove all obsolete BatteryComponent method calls (#25871)
Removed all obsolete, non-ECS method calls to BatteryComponent
This commit is contained in:
@@ -41,7 +41,7 @@ public sealed partial class GunSystem
|
||||
if (!TryComp<BatteryComponent>(uid, out var battery))
|
||||
return;
|
||||
|
||||
UpdateShots(uid, component, battery.Charge, battery.MaxCharge);
|
||||
UpdateShots(uid, component, battery.CurrentCharge, battery.MaxCharge);
|
||||
}
|
||||
|
||||
private void UpdateShots(EntityUid uid, BatteryAmmoProviderComponent component, float charge, float maxCharge)
|
||||
|
||||
Reference in New Issue
Block a user