Merge pull request #12 from ItzN00bPvP/patch-1

fix: include all state ids
pull/13/head
Julius Riegel 2 years ago committed by GitHub
commit c57bd57638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ impl Blocks {
blocks.iter().for_each(|b| {
let min_state_id = b.min_state_id.unwrap_or(b.id << 4);
let max_state_id = b.max_state_id.unwrap_or(min_state_id + 15);
(min_state_id..max_state_id).for_each(|s| {
(min_state_id..=max_state_id).for_each(|s| {
blocks_map.insert(s, b.clone());
});
});

Loading…
Cancel
Save