public void UpdateFilter(BlockAccessor block) { long id = block.Id; long version = block.GetEntityVersion(); blockEntityVersions[id] = version; }
public bool FilterBlock(BlockAccessor block) { long id = block.Id; long version = block.GetEntityVersion(); if (!blockEntityVersions.TryGetValue(id, out long oldVersion)) { return(false); } return(oldVersion == version); }