summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 9e88f47a1..8e0c707e7 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -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;