diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-24 23:00:24 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-24 23:00:24 +0200 |
commit | 11ca2f96a08f8eaba95a7c8ecc2ddd5f761565f9 (patch) | |
tree | fe09f1c18d00cbd2587c5c8b8acff2182aa9a79d /source | |
parent | Fixed inconsistent metas and added snow metas (diff) | |
download | cuberite-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 'source')
-rw-r--r-- | source/Blocks/BlockVine.h | 7 |
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 { |