From 6bf5fa0d88afd5ebe526b0c7946499b27adce6bc Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 9 Jun 2012 16:51:52 +0000 Subject: Disallowed placing cacti in water git-svn-id: http://mc-server.googlecode.com/svn/trunk@592 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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; } -- cgit v1.2.3