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:
parent
e0f74160ea
commit
6bf5fa0d88
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user