1
0

Disallowed placing cacti in water

git-svn-id: http://mc-server.googlecode.com/svn/trunk@592 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-06-09 16:51:52 +00:00
parent e0f74160ea
commit 6bf5fa0d88

View File

@ -1332,6 +1332,8 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
// Check whether selected item is allowed to be placed on specific surface // 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 (!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; return;
} }