From 45de7d0537d2caec7d0a7ede48e2b72301bc9da9 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 12 Aug 2017 20:09:16 +0500 Subject: 2017-08-12 --- src/Section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Section.cpp') 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; -- cgit v1.2.3