diff options
author | tonibm19 <tonibm19@gmail.com> | 2013-12-24 12:35:40 +0100 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2013-12-24 12:35:40 +0100 |
commit | 5e245773738ebe31a91f93e60194d62e26c48f9e (patch) | |
tree | 658720efd7d6c80ea583506e74bd102ccf4a4e95 /src/Blocks | |
parent | Fixed a possible crash (diff) | |
download | cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar.gz cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar.bz2 cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar.lz cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar.xz cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.tar.zst cuberite-5e245773738ebe31a91f93e60194d62e26c48f9e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPumpkin.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Blocks/BlockPumpkin.h b/src/Blocks/BlockPumpkin.h index 7fca69d08..79b3f3a54 100644 --- a/src/Blocks/BlockPumpkin.h +++ b/src/Blocks/BlockPumpkin.h @@ -31,10 +31,10 @@ public: } if ( - a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ + 1) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ - 1) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ) == E_BLOCK_IRON_BLOCK + (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ + 1) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ - 1) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ) == E_BLOCK_IRON_BLOCK) ) { a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0); @@ -46,10 +46,10 @@ public: } else if ( - a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX + 1, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX - 1, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK && - a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ) == E_BLOCK_IRON_BLOCK + (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX + 1, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX - 1, a_BlockY - 1, a_BlockZ) == E_BLOCK_IRON_BLOCK) && + (a_World->GetBlock(a_BlockX, a_BlockY - 2, a_BlockZ) == E_BLOCK_IRON_BLOCK) ) { a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0); |