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/Mobs/SnowGolem.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/Mobs/SnowGolem.cpp')
-rw-r--r-- | src/Mobs/SnowGolem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/SnowGolem.cpp b/src/Mobs/SnowGolem.cpp index 76334d970..8c4178beb 100644 --- a/src/Mobs/SnowGolem.cpp +++ b/src/Mobs/SnowGolem.cpp @@ -38,7 +38,7 @@ void cSnowGolem::Tick(float a_Dt, cChunk & a_Chunk) { BLOCKTYPE BlockBelow = m_World->GetBlock((int) floor(GetPosX()), (int) floor(GetPosY()) - 1, (int) floor(GetPosZ())); BLOCKTYPE Block = m_World->GetBlock((int) floor(GetPosX()), (int) floor(GetPosY()), (int) floor(GetPosZ())); - if (Block == E_BLOCK_AIR && cBlockInfo::IsSolid(BlockBelow)) + if ((Block == E_BLOCK_AIR) && cBlockInfo::IsSolid(BlockBelow)) { m_World->SetBlock((int) floor(GetPosX()), (int) floor(GetPosY()), (int) floor(GetPosZ()), E_BLOCK_SNOW, 0); } |