Compare commits

...

3 Commits

Author SHA1 Message Date
trivernis 9ac3eb5eed
chore: Release minecraft-data-rs version 0.7.2 1 year ago
Julius Riegel c57bd57638
Merge pull request #12 from ItzN00bPvP/patch-1
fix: include all state ids
1 year ago
Philipp_DE e4d25d29ee
fix: include all state ids
loop doesn't include max_state_id because the upperbound is exclusive
loop also doesnt work where min_state_id = max_state_id
1 year ago

@ -1,6 +1,6 @@
[package]
name = "minecraft-data-rs"
version = "0.7.1"
version = "0.7.2"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
readme = "README.md"

@ -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