Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Tag;
using Robust.Shared.Prototypes;
using Content.Server.Shuttles.Components;

namespace Content.Server.Nutrition.EntitySystems
{
Expand Down Expand Up @@ -59,10 +60,17 @@ public void UpdateTags(Entity<TrashOnSolutionEmptyComponent> entity, Solution so
if (solution.Volume <= 0)
{
_tagSystem.AddTag(entity.Owner, TrashTag);

EnsureComp<SpaceGarbageComponent>(entity.Owner); // Omu - Add the SpaceGarbage component when the container is empty.

return;
}

_tagSystem.RemoveTag(entity.Owner, TrashTag);

if (HasComp<SpaceGarbageComponent>(entity.Owner)) // Omu - Remove the SpaceGarbage component when the container has a reagent, preventing deletion of chem bottles, etc.
RemComp<SpaceGarbageComponent>(entity.Owner); // Omu

}
}
}
Loading