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:
parent
ceffb64760
commit
38862ad018
@ -1006,7 +1006,7 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
|
|||||||
return;
|
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 LavaBucket = false;
|
||||||
bool WaterBucket = false;
|
bool WaterBucket = false;
|
||||||
bool bRemoveItem = true;
|
bool bRemoveItem = true;
|
||||||
@ -1204,6 +1204,33 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
|
|||||||
bRemoveItem = false;
|
bRemoveItem = false;
|
||||||
break;
|
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:
|
default:
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user