summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 03:18:20 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 03:18:20 +0100
commit35419380d807bbee6bf74be56bb7bb577332d5d0 (patch)
treec4dc6d5597b9eb73131ce196d58c34cceed151f8
parentSome kind of 'template' world generator that right now just generates an all dirt world. You can use this to test new algorithms (diff)
downloadcuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar.gz
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar.bz2
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar.lz
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar.xz
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.tar.zst
cuberite-35419380d807bbee6bf74be56bb7bb577332d5d0.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index f7b93ca7e..724fbd9fc 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -557,7 +557,7 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
if ( cRoot::Get()->GetWorld()->GetTime() - m_Player->GetLastBlockActionTime() < 0.1 ) { //only allow block interactions every 0.1 seconds
m_Player->SetLastBlockActionTime(); //Player tried to interact with a block. Reset last block interation time.
m_Player->SetLastBlockActionCnt(LastActionCnt+1);
- if (LastActionCnt > 3) { //kick if more than 3 interactions per .1 seconds
+ if (LastActionCnt > 5) { //kick if more than 3 interactions per .1 seconds
LOGWARN("Player %s tried to interact with a block too quickly! (could indicate bot) Was Kicked.", GetUsername() );
//TODO Too many false-positives :s for example on a minimal server lagg :s should be re checked
Kick("You're a baaaaaad boy!");
@@ -732,7 +732,7 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
if ( cRoot::Get()->GetWorld()->GetTime() - m_Player->GetLastBlockActionTime() < 0.1 ) { //only allow block interactions every 0.1 seconds
m_Player->SetLastBlockActionTime(); //Player tried to interact with a block. Reset last block interation time.
m_Player->SetLastBlockActionCnt(LastActionCnt+1);
- if (LastActionCnt > 3) { //kick if more than 3 interactions per .1 seconds
+ if (LastActionCnt > 5) { //kick if more than 3 interactions per .1 seconds
LOGWARN("Player %s tried to interact with a block too quickly! (could indicate bot) Was Kicked.", GetUsername() );
Kick("You're a baaaaaad boy!");
break;