blocks: fix clippy::precedence use + not |

This commit is contained in:
ice_iix 2020-06-28 18:14:09 -07:00
parent c255edd944
commit d64316e8c8
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ define_blocks! {
offset if check_decay {
None
} else {
Some(variant.offset() * (7 * 2) + ((distance as usize - 1) << 1) | (if decayable { 0 } else { 1 }))
Some(variant.offset() * (7 * 2) + ((distance as usize - 1) << 1) + (if decayable { 0 } else { 1 }))
},
material material::LEAVES,
model { ("minecraft", format!("{}_leaves", variant.as_string()) ) },