Fix custom_entity:on_interaction() not always called.