Fix collisions for slabs
This commit is contained in:
parent
0b8cc33c17
commit
d2c5d0641c
|
@ -1186,8 +1186,8 @@ define_blocks! {
|
|||
model { ("minecraft", format!("{}_slab", variant.as_string()) ) },
|
||||
variant format!("half={}", half.as_string()),
|
||||
collision match half {
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 1.0, 1.0))],
|
||||
_ => unreachable!(),
|
||||
},
|
||||
}
|
||||
|
@ -2966,8 +2966,8 @@ define_blocks! {
|
|||
model { ("minecraft", format!("{}_slab", variant.as_string()) ) },
|
||||
variant format!("half={}", half.as_string()),
|
||||
collision match half {
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 1.0, 1.0))],
|
||||
_ => unreachable!(),
|
||||
},
|
||||
}
|
||||
|
@ -4324,8 +4324,8 @@ define_blocks! {
|
|||
model { ("minecraft", format!("{}_slab", variant.as_string()) ) },
|
||||
variant format!("half={}", half.as_string()),
|
||||
collision match half {
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 1.0, 1.0))],
|
||||
_ => unreachable!(),
|
||||
},
|
||||
}
|
||||
|
@ -4905,8 +4905,8 @@ define_blocks! {
|
|||
model { ("minecraft", format!("{}_slab", variant.as_string()) ) },
|
||||
variant format!("half={},variant=default", half.as_string()),
|
||||
collision match half {
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Bottom => vec![Aabb3::new(Point3::new(0.0, 0.0, 0.0), Point3::new(1.0, 0.5, 1.0))],
|
||||
BlockHalf::Top => vec![Aabb3::new(Point3::new(0.0, 0.5, 0.0), Point3::new(1.0, 1.0, 1.0))],
|
||||
_ => unreachable!(),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue