diff options
| author | mat <github@matdoes.dev> | 2022-12-08 18:39:35 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-12-08 18:39:35 -0600 |
| commit | 70e2dfed16da8d5130460ea15b47701e622f4a9f (patch) | |
| tree | 41f670baf3a05ed180880ec2a11d8e5f6a1a1599 /azalea-physics/src/collision/world_collisions.rs | |
| parent | f2076daba5cfcce81399b075ba9258fbdc2012fa (diff) | |
| download | azalea-drasl-70e2dfed16da8d5130460ea15b47701e622f4a9f.tar.xz | |
wrap_comments = true
Diffstat (limited to 'azalea-physics/src/collision/world_collisions.rs')
| -rw-r--r-- | azalea-physics/src/collision/world_collisions.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-physics/src/collision/world_collisions.rs b/azalea-physics/src/collision/world_collisions.rs index a4062fcc..a28bce14 100644 --- a/azalea-physics/src/collision/world_collisions.rs +++ b/azalea-physics/src/collision/world_collisions.rs @@ -69,8 +69,8 @@ impl<'a> BlockCollisions<'a> { // if (this.cachedBlockGetter != null && this.cachedBlockGetterPos == var5) { // return this.cachedBlockGetter; // } else { - // BlockGetter var7 = this.collisionGetter.getChunkForCollisions(chunkX, chunkZ); - // this.cachedBlockGetter = var7; + // BlockGetter var7 = this.collisionGetter.getChunkForCollisions(chunkX, + // chunkZ); this.cachedBlockGetter = var7; // this.cachedBlockGetterPos = chunkPosLong; // return var7; // } @@ -100,7 +100,8 @@ impl<'a> Iterator for BlockCollisions<'a> { .get(&(&pos).into(), self.world.min_y()) .unwrap_or(BlockState::Air); - // TODO: continue if self.only_suffocating_blocks and the block is not suffocating + // TODO: continue if self.only_suffocating_blocks and the block is not + // suffocating let block_shape = block_state.shape(); |
