Vines now spread when updated

master
Tiger Wang 2013-08-24 22:00:24 +01:00
parent 2081b6dfde
commit 11ca2f96a0
1 changed files with 7 additions and 0 deletions

View File

@ -168,6 +168,13 @@ public:
return false; 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 virtual NIBBLETYPE MetaRotateCCW(NIBBLETYPE a_Meta) override
{ {