diff --git a/Content.Server/Power/Generator/GeneratorSystem.cs b/Content.Server/Power/Generator/GeneratorSystem.cs index e2c551c103c..cbe454f69a9 100644 --- a/Content.Server/Power/Generator/GeneratorSystem.cs +++ b/Content.Server/Power/Generator/GeneratorSystem.cs @@ -74,6 +74,8 @@ private void SolidEmpty(EntityUid uid, SolidFuelGeneratorAdapterComponent compon else { int materialAmount = _materialStorage.GetMaterialAmount(uid, component.FuelMaterial); + if (materialAmount <= 0) // No fuel? Job done. + return; _materialStorage.TryChangeMaterialAmount(uid, component.FuelMaterial, -materialAmount); var ejectedUid = Spawn(component.EjectedFuelProtoId, Transform(uid).Coordinates);