Fixes placing blocks on snow.
Also a little formatting. git-svn-id: http://mc-server.googlecode.com/svn/trunk@611 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
e1b5f0af04
commit
7450e573c3
@ -1049,6 +1049,15 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ClickedBlock == E_BLOCK_SNOW)
|
||||||
|
{
|
||||||
|
if (a_Packet->m_Direction == 1)
|
||||||
|
{
|
||||||
|
a_Packet->m_PosY--;
|
||||||
|
}
|
||||||
|
bIgnoreCollision = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Special handling for special items:
|
// Special handling for special items:
|
||||||
switch (a_Packet->m_ItemType)
|
switch (a_Packet->m_ItemType)
|
||||||
{
|
{
|
||||||
@ -2082,3 +2091,5 @@ void cClientHandle::SocketClosed(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user