summary refs log tree commit diff
path: root/src/World/Chunk.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-21 17:46:35 +0200
committerMel <einebeere@gmail.com>2022-10-21 17:46:35 +0200
commit20c53c7473fc6cc08944f502f078dfe57bcae1c9 (patch)
tree7e6b09cea68251d4564a363c1a372d6daf746dcf /src/World/Chunk.cpp
parent6ed978051668c08f5a957c97570f364dd580c807 (diff)
downloadmeowcraft-20c53c7473fc6cc08944f502f078dfe57bcae1c9.tar.zst
meowcraft-20c53c7473fc6cc08944f502f078dfe57bcae1c9.zip
Broken infinite world
Diffstat (limited to 'src/World/Chunk.cpp')
-rw-r--r--src/World/Chunk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp
index 0d86ddb..d02e5e5 100644
--- a/src/World/Chunk.cpp
+++ b/src/World/Chunk.cpp
@@ -45,6 +45,10 @@ GFX::Mesh Chunk::mesh() {
     return {positions, tex_coords, indices};
 }
 
+Vector<3> Chunk::position() {
+    return m_position;
+}
+
 bool Chunk::is_face_visible(uint32_t x, uint32_t y, uint32_t z, BlockSide side) {
     Vector<3, int32_t> offset{};
     switch (side) {