Fixed a desync in Cargo.CurrentAdjacentCells#21507
Conversation
This reverts commit 6040187.
|
I could do with some help understanding how I also feel like the cache is wrong?: |
|
I strongly suspect that it is due to the same enumerable being cached and returned for multiple callers. The |
410bb24 to
4d6fa60
Compare
|
I looked into the root cause, and it's the same as described in #17863:
Usually, the cell given by Combined with the fact hovering over the unit will evaluate
Then, for other players in the game:
As the units unload into different cells, a desync occurs. Ultimately the cause here is that cache key is insufficient - Reverting it to cache the enumerable, which is then lazily re-evaluated reduces the scope of possible desyncs but is NOT a full solve. The cached enumerable caches the result of Currently our only trait is |
|
A solution could be to add a |
Closes #21506