Fix issue where empty power cells would still explode in the microwave (#8393)
This commit is contained in:
@@ -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???
|
||||||
|
|||||||
Reference in New Issue
Block a user