Cover not updated as the texture is updated
flekschas opened this issue · comments
When the texture is updated, the cover is not updated too. This can lead to inconsistencies.
As the item texture is updated we should check if the items are part of a pile and then update the piles as well. I think the best place to check is https://github.com/flekschas/piling.js/blob/master/src/library.js#L3113
We could have yet another dictionary in which we store which piles are affected and then call the pile updater for those piles. In the updater, we really only need to check if the pile has a cover. If it has a cover we should update it.