summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index f9d74a0de..a48dd31ec 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -1332,6 +1332,8 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
// Check whether selected item is allowed to be placed on specific surface
if (!m_Player->GetWorld()->IsPlacingItemLegal(a_Packet->m_ItemType, X, Y, Z))
{
+ // If we don't send the block, MC is happy placing cacti underwater:
+ m_Player->GetWorld()->SendBlockTo(X, Y, Z, m_Player);
return;
}