From 48d30dfca22dee032de523cdf3a0791cebffd3e5 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 14 Feb 2013 21:47:57 +0000 Subject: Fixed one-hit-blocks not being broken server-side FS #301 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1213 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index efe4f9c9f..0f9958e98 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -619,8 +619,10 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc m_LastDigBlockY = a_BlockY; m_LastDigBlockZ = a_BlockZ; - // In creative mode, digging is done immediately - if (m_Player->GetGameMode() == eGameMode_Creative) + if ( + (m_Player->GetGameMode() == eGameMode_Creative) || // In creative mode, digging is done immediately + g_BlockOneHitDig[a_OldBlock] // One-hit blocks get destroyed immediately, too + ) { HandleBlockDigFinished(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta); return; -- cgit v1.2.3