diff options
author | Mattes D <github@xoft.cz> | 2014-12-05 12:56:53 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-05 12:58:47 +0100 |
commit | 44644ae0254bf3659c0995575041e2f656f20398 (patch) | |
tree | 571528b0f4864c0dab826a4366b9ad40049960be /src/World.cpp | |
parent | Merge pull request #1649 from jonfabe/InfoDumpFix (diff) | |
download | cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.gz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.bz2 cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.lz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.xz cuberite-44644ae0254bf3659c0995575041e2f656f20398.tar.zst cuberite-44644ae0254bf3659c0995575041e2f656f20398.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp index 9a6ef5c30..7518327b9 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1809,7 +1809,7 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_FlyAwaySpeed /= 100; // Pre-divide, so that we don't have to divide each time inside the loop for (cItems::const_iterator itr = a_Pickups.begin(); itr != a_Pickups.end(); ++itr) { - if (!IsValidItem(itr->m_ItemType) || itr->m_ItemType == E_BLOCK_AIR) + if (!IsValidItem(itr->m_ItemType) || (itr->m_ItemType == E_BLOCK_AIR)) { // Don't spawn pickup if item isn't even valid; should prevent client crashing too continue; @@ -1835,7 +1835,7 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double { for (cItems::const_iterator itr = a_Pickups.begin(); itr != a_Pickups.end(); ++itr) { - if (!IsValidItem(itr->m_ItemType) || itr->m_ItemType == E_BLOCK_AIR) + if (!IsValidItem(itr->m_ItemType) || (itr->m_ItemType == E_BLOCK_AIR)) { continue; } |