Fix custom_entity:set_direction() that had no effect.