summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-12-24 19:31:32 +0100
committertonibm19 <tonibm19@gmail.com>2013-12-24 19:31:32 +0100
commit258bb4588051c410e302d8f51bf8c1ad68123352 (patch)
tree0e93a050356b145a942beed7ea1382abc4c4f821 /src
parentFixed compilation (diff)
downloadcuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar.gz
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar.bz2
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar.lz
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar.xz
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.tar.zst
cuberite-258bb4588051c410e302d8f51bf8c1ad68123352.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockPumpkin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockPumpkin.h b/src/Blocks/BlockPumpkin.h
index 5c2d2f66c..d7b8513a7 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) && (BlockY2 == E_BLOCK_SNOW_BLOCK)) //If the first two blocks below the pumpkin are snow blocks, spawn a snow golem.
{
a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0);