From 761cd305ee5dcbfa983780e01d418533c8522df6 Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Mon, 23 May 2022 20:11:20 -0400 Subject: [PATCH] Fix issue where empty power cells would still explode in the microwave (#8393) --- Content.Server/PowerCell/PowerCellSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/PowerCell/PowerCellSystem.cs b/Content.Server/PowerCell/PowerCellSystem.cs index e636575a4a..ed319f2b2f 100644 --- a/Content.Server/PowerCell/PowerCellSystem.cs +++ b/Content.Server/PowerCell/PowerCellSystem.cs @@ -44,6 +44,9 @@ public sealed class PowerCellSystem : SharedPowerCellSystem private void OnMicrowaved(EntityUid uid, BatteryComponent component, BeingMicrowavedEvent args) { + if (component.CurrentCharge == 0) + return; + args.Handled = true; // What the fuck are you doing???