diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-12 22:55:29 +0200 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-12 22:55:29 +0200 |
commit | 6c5a42737ff51f7088a672ef2ca2be777597eb7b (patch) | |
tree | 83bdaf5847365339c3ebeab8d5e3c9d32ec542e8 /source/cClientHandle.cpp | |
parent | cleaned the svn:ignore property a little bit (diff) | |
download | cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar.gz cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar.bz2 cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar.lz cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar.xz cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.tar.zst cuberite-6c5a42737ff51f7088a672ef2ca2be777597eb7b.zip |
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r-- | source/cClientHandle.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index e4c501a4f..6e7df2bb8 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -307,7 +307,7 @@ void cClientHandle::Authenticate(void) World = cRoot::Get()->GetDefaultWorld(); } - m_Player->LoginSetGameMode (World->GetGameMode()); //set player's gamemode to server's gamemode at login. TODO: set to last player's gamemode at logout + // We donīt need this, do we? m_Player->LoginSetGameMode (World->GetGameMode()); //set player's gamemode to server's gamemode at login. TODO: set to last player's gamemode at logout m_Player->SetIP (m_Socket.GetIPString()); @@ -909,6 +909,14 @@ void cClientHandle::HandleBlockDig(cPacket_BlockDig * a_Packet) void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet) { + if(a_Packet->m_PosX == -1 + && a_Packet->m_PosY == 255 + && a_Packet->m_PosZ == -1) + { + //I donīt know whats the idea behind these packets O.o + return; + } + if (!CheckBlockInteractionsRate()) { return; |