Instead of having logic to set the event type and then pick it up again in the inv change event, store a callback to be called on inv change
Instead of having logic to set the event type and then pick it up again in the inv change event, store a callback to be called on inv change