diff options
| author | mat <github@matdoes.dev> | 2022-05-08 23:45:15 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-08 23:45:15 -0500 |
| commit | 345cecf7afa84df2d5ecf075ecfb499e3fd10a55 (patch) | |
| tree | 4657aebf820aab0e934cc501fcbb822d5ef2c84f /azalea-world/src/lib.rs | |
| parent | 122693a654b0c851bbb9e134c539961419175bef (diff) | |
| download | azalea-drasl-345cecf7afa84df2d5ecf075ecfb499e3fd10a55.tar.xz | |
add more stuff
Diffstat (limited to 'azalea-world/src/lib.rs')
| -rw-r--r-- | azalea-world/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs index 4b8c21e9..4da2fb0f 100644 --- a/azalea-world/src/lib.rs +++ b/azalea-world/src/lib.rs @@ -67,6 +67,15 @@ impl IndexMut<&ChunkPos> for World { &mut self.storage[pos] } } +// impl Index<&BlockPos> for World { +// type Output = Option<Arc<Mutex<Chunk>>>; + +// fn index(&self, pos: &BlockPos) -> &Self::Output { +// let chunk = &self[ChunkPos::from(pos)]; +// // chunk. + +// } +// } pub struct ChunkStorage { view_center: ChunkPos, |
