diff options
-rw-r--r-- | source/cClientHandle.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 92388301c..79fd6b34b 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -1051,9 +1051,24 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet) 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; } |