Fixed snow again, this time for real.
I didn't realize the client would also try to replace the snow from the sides. git-svn-id: http://mc-server.googlecode.com/svn/trunk@612 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
7450e573c3
commit
6f70fb2845
@ -1051,9 +1051,24 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet)
|
|||||||
|
|
||||||
if (ClickedBlock == E_BLOCK_SNOW)
|
if (ClickedBlock == E_BLOCK_SNOW)
|
||||||
{
|
{
|
||||||
if (a_Packet->m_Direction == 1)
|
switch (a_Packet->m_Direction)
|
||||||
{
|
{
|
||||||
a_Packet->m_PosY--;
|
case 1:
|
||||||
|
a_Packet->m_PosY--;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
a_Packet->m_PosZ++;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
a_Packet->m_PosZ--;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
a_Packet->m_PosX++;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
a_Packet->m_PosX--;
|
||||||
|
break;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
bIgnoreCollision = true;
|
bIgnoreCollision = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user