summaryrefslogtreecommitdiffstats
path: root/src/Section.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Section.cpp')
-rw-r--r--src/Section.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Section.cpp b/src/Section.cpp
index 8b86afd..b2d9ac9 100644
--- a/src/Section.cpp
+++ b/src/Section.cpp
@@ -33,7 +33,7 @@ Section::~Section() {
}
Block &Section::GetBlock(Vector pos) {
- return m_blocks[pos.GetY() * 256 + pos.GetZ() * 16 + pos.GetX()];
+ return m_blocks[pos.y * 256 + pos.z * 16 + pos.x];
}
double totalParsingTime = 0;