summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockVine.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-24 23:00:24 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-24 23:00:24 +0200
commit11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9 (patch)
treefe09f1c18d00cbd2587c5c8b8acff2182aa9a79d /source/Blocks/BlockVine.h
parentFixed inconsistent metas and added snow metas (diff)
downloadcuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar.gz
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar.bz2
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar.lz
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar.xz
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.tar.zst
cuberite-11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockVine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Blocks/BlockVine.h b/source/Blocks/BlockVine.h
index 0bc935272..37d9f1a45 100644
--- a/source/Blocks/BlockVine.h
+++ b/source/Blocks/BlockVine.h
@@ -168,6 +168,13 @@ public:
return false;
}
+ virtual void OnUpdate(cWorld * a_World, int X, int Y, int Z)
+ {
+ if (a_World->GetBlock(X, Y - 1, Z) == E_BLOCK_AIR)
+ {
+ a_World->SetBlock(X, Y - 1, Z, E_BLOCK_VINES, a_World->GetBlockMeta(X, Y, Z));
+ }
+ }
virtual NIBBLETYPE MetaRotateCCW(NIBBLETYPE a_Meta) override
{