private void OnEntRemoved(EntityUid uid, AntiRottingContainerComponent component, EntRemovedFromContainerMessage args) { if (TryComp <PerishableComponent>(args.Entity, out var perishable)) { ToggleDecomposition(args.Entity, true, perishable); } }
/// Containers private void OnEntInserted(EntityUid uid, AntiRottingContainerComponent component, EntInsertedIntoContainerMessage args) { if (TryComp <PerishableComponent>(args.Entity, out var perishable)) { ToggleDecomposition(args.Entity, false, perishable); } }