mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
use empty_shape
This commit is contained in:
parent
5840f9e28d
commit
ecab68e7b8
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ pub trait BlockWithShape {
|
|||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref SHAPE0: VoxelShape = collision::box_shape(0., 0., 0., 0., 0., 0.);
|
||||
static ref SHAPE0: VoxelShape = collision::empty_shape();
|
||||
static ref SHAPE1: VoxelShape = collision::box_shape(0., 0., 0., 1., 1., 1.);
|
||||
static ref SHAPE2: VoxelShape = collision::box_shape(0.125, 0., 0.125, 0.875, 0.75, 0.875);
|
||||
static ref SHAPE3: VoxelShape =
|
||||
|
|
|
@ -24,7 +24,7 @@ def simplify_shapes(blocks: dict, shapes: dict, aabbs: dict):
|
|||
old_id_to_new_id = {}
|
||||
|
||||
old_id_to_new_id[None] = 0
|
||||
new_shapes[0] = ((0.0,) * 6,)
|
||||
new_shapes[0] = ()
|
||||
new_id_increment += 1
|
||||
|
||||
for shape_id, shape in enumerate(shapes):
|
||||
|
|
Loading…
Add table
Reference in a new issue