From 8b275c0b0a1064a813ef14a109b64e1fce461893 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 7 Aug 2017 20:08:15 +0500 Subject: 2017-08-07 --- src/RendererSection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RendererSection.cpp') diff --git a/src/RendererSection.cpp b/src/RendererSection.cpp index 62a0dc7..fbb9c19 100644 --- a/src/RendererSection.cpp +++ b/src/RendererSection.cpp @@ -172,7 +172,7 @@ void RendererSection::SetEnabled(bool isEnabled) { this->isEnabled = isEnabled; } -bool RendererSection::IsNeedUpdate() { +bool RendererSection::IsNeedResourcesPrepare() { size_t currentHash = world->GetSection(sectionPosition).GetHash(); bool isNeedUpdate = currentHash != hash; return isNeedUpdate; @@ -188,7 +188,7 @@ void RendererSection::PrepareResources() { for (int z = 0; z < 16; z++) { for (int x = 0; x < 16; x++) { Vector blockPos = Vector(x, y, z) + (sectionPosition * 16); - Block &block = world->GetBlock(blockPos); + Block block = world->GetBlock(blockPos); if (block.id == 0) continue; -- cgit v1.2.3