1
0

Seeds can now be planted and they grow (albeit too quickly and too non-uniformly, need to fix blocktick selection)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@523 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-05-30 16:50:59 +00:00
parent ceffb64760
commit 38862ad018

View File

@ -1006,7 +1006,7 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
return;
}
char MetaData = (char)Equipped.m_ItemHealth;
NIBBLETYPE MetaData = (NIBBLETYPE)Equipped.m_ItemHealth; // This generally works for logs & planks, others will override
bool LavaBucket = false;
bool WaterBucket = false;
bool bRemoveItem = true;
@ -1204,6 +1204,33 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
bRemoveItem = false;
break;
}
case E_ITEM_SEEDS:
{
if (ClickedBlock != E_BLOCK_FARMLAND)
{
return;
}
a_Packet->m_ItemType = E_BLOCK_CROPS;
break;
}
case E_ITEM_MELON_SEEDS:
{
if (ClickedBlock != E_BLOCK_FARMLAND)
{
return;
}
a_Packet->m_ItemType = E_BLOCK_MELON_STEM;
break;
}
case E_ITEM_PUMPKIN_SEEDS:
{
if (ClickedBlock != E_BLOCK_FARMLAND)
{
return;
}
a_Packet->m_ItemType = E_BLOCK_PUMPKIN_STEM;
break;
}
default:
{
break;