diff options
author | tonibm19 <tonibm19@gmail.com> | 2013-12-24 19:08:22 +0100 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2013-12-24 19:08:22 +0100 |
commit | 276f7dae5c6c83bd0abe18c9b73efd6918b00dde (patch) | |
tree | 29445f45dcc684df024c1857f9634f893595fb09 /src/Blocks | |
parent | Added myself to contributors (diff) | |
download | cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar.gz cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar.bz2 cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar.lz cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar.xz cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.tar.zst cuberite-276f7dae5c6c83bd0abe18c9b73efd6918b00dde.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPumpkin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockPumpkin.h b/src/Blocks/BlockPumpkin.h index 7a1f7da4d..1ddc1ed1f 100644 --- a/src/Blocks/BlockPumpkin.h +++ b/src/Blocks/BlockPumpkin.h @@ -18,8 +18,8 @@ public: { if (a_BlockY > 1) // Make sure server won't check for inexistent blocks (below y=0). { - int BlockY1 = a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ); - int BlockY2 = a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ); // We don't need to check this 2 blocks more than 1 time. + BLOCKTYPE BlockY1 = a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ); + BLOCKTYPE BlockY2 = a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ); // We don't need to check this 2 blocks more than 1 time. if ( (BlockY1 == E_BLOCK_SNOW_BLOCK) && // If the first two blocks below the pumpkin are snow blocks, spawn a snow golem. |