aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/collision/world_collisions.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-12-08 18:39:35 -0600
committermat <github@matdoes.dev>2022-12-08 18:39:35 -0600
commit70e2dfed16da8d5130460ea15b47701e622f4a9f (patch)
tree41f670baf3a05ed180880ec2a11d8e5f6a1a1599 /azalea-physics/src/collision/world_collisions.rs
parentf2076daba5cfcce81399b075ba9258fbdc2012fa (diff)
downloadazalea-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.rs7
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();