From 6a261e451d958dc1890f2f8efbe776ded9ec3f9b Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Fri, 21 Jul 2017 21:10:39 -0500 Subject: Fixed check to see if block entity is in merge source. --- src/BlockArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp index a17e5e8ef..eb3e82108 100644 --- a/src/BlockArea.cpp +++ b/src/BlockArea.cpp @@ -2704,7 +2704,7 @@ void cBlockArea::MergeBlockEntities(int a_RelX, int a_RelY, int a_RelZ, const cB { auto srcIdx = a_Src.MakeIndex(srcX, srcY, srcZ); auto itrSrc = a_Src.m_BlockEntities->find(srcIdx); - if (itrSrc == a_Src.m_BlockEntities->end()) + if (itrSrc != a_Src.m_BlockEntities->end()) { m_BlockEntities->insert({idx, itrSrc->second->Clone(x, y, z)}); continue; -- cgit v1.2.3