summaryrefslogtreecommitdiffstats
path: root/source/Blocks
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 17:03:56 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 17:03:56 +0100
commitb65a22fc1f0e5e95be234d6d94388091f74704a9 (patch)
tree0227c64f4eb43a15961d55f712099a643642864b /source/Blocks
parentRemoved log message when spawning players on a client. (diff)
downloadcuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.gz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.bz2
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.lz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.xz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.zst
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.zip
Diffstat (limited to 'source/Blocks')
-rw-r--r--source/Blocks/BlockVine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Blocks/BlockVine.h b/source/Blocks/BlockVine.h
index cdef18520..791b01a79 100644
--- a/source/Blocks/BlockVine.h
+++ b/source/Blocks/BlockVine.h
@@ -36,11 +36,11 @@ public:
}
BLOCKTYPE TopBlock = a_World->GetBlock( a_BlockX, a_BlockY + 1, a_BlockZ);
- if (g_BlockIsSolid[TopBlock] || TopBlock==E_BLOCK_LEAVES)
+ if (g_BlockIsSolid[TopBlock] || (TopBlock == E_BLOCK_LEAVES))
{
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, true );
BLOCKTYPE BaseBlock = a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ);
- if (g_BlockIsSolid[BaseBlock] == false && BaseBlock!=E_BLOCK_LEAVES)
+ if (!g_BlockIsSolid[BaseBlock] && (BaseBlock != E_BLOCK_LEAVES))
{
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, false );
a_World->SetBlock( a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_VINES, 0);
@@ -50,7 +50,7 @@ public:
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, true );
BLOCKTYPE BaseBlock = a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ);
- return g_BlockIsSolid[BaseBlock] || BaseBlock==E_BLOCK_LEAVES;
+ return (g_BlockIsSolid[BaseBlock] || (BaseBlock == E_BLOCK_LEAVES));
}