Fix issue where empty power cells would still explode in the microwave (#8393)

This commit is contained in:
themias
2022-05-23 20:11:20 -04:00
committed by GitHub
parent 03d702b170
commit 761cd305ee

View File

@@ -44,6 +44,9 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
private void OnMicrowaved(EntityUid uid, BatteryComponent component, BeingMicrowavedEvent args) private void OnMicrowaved(EntityUid uid, BatteryComponent component, BeingMicrowavedEvent args)
{ {
if (component.CurrentCharge == 0)
return;
args.Handled = true; args.Handled = true;
// What the fuck are you doing??? // What the fuck are you doing???