summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockVine.h
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-23 20:13:37 +0200
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-23 20:13:37 +0200
commit1e452425469e4a0cbf61fce698eb3ad89fb80a77 (patch)
treef38c53dd0f72971c1c829034250e38284831eb1e /source/Blocks/BlockVine.h
parentYou can now see particles and hear sounds when other players are destroying blocks. (diff)
downloadcuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar.gz
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar.bz2
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar.lz
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar.xz
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.tar.zst
cuberite-1e452425469e4a0cbf61fce698eb3ad89fb80a77.zip
Diffstat (limited to 'source/Blocks/BlockVine.h')
-rw-r--r--source/Blocks/BlockVine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Blocks/BlockVine.h b/source/Blocks/BlockVine.h
index 8ad2f4b35..b71997f2a 100644
--- a/source/Blocks/BlockVine.h
+++ b/source/Blocks/BlockVine.h
@@ -35,20 +35,20 @@ public:
return true;
}
- if ((a_World->GetBlock( a_BlockX, a_BlockY + 1, a_BlockZ ) != E_BLOCK_AIR))
+ if (g_BlockIsSolid[a_World->GetBlock( a_BlockX, a_BlockY + 1, a_BlockZ )])
{
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, true );
- if (a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ ) == E_BLOCK_AIR)
+ if (g_BlockIsSolid[a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ )]==false)
{
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, false );
- a_World->FastSetBlock( a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_VINES, 0);
+ a_World->SetBlock( a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_VINES, 0);
}
return true;
}
AddDirection( a_BlockX, a_BlockY, a_BlockZ, a_Dir, true );
- return a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ ) != E_BLOCK_AIR;
+ return g_BlockIsSolid[a_World->GetBlock( a_BlockX, a_BlockY, a_BlockZ)];
}