This uses set_state_from_inventory which is slow. And apparently still buggy.
I suggest we fix it by changing to apply_inventory_delta.
This uses set_state_ from_inventory which is slow. And apparently still buggy.
I suggest we fix it by changing to apply_inventory _delta.