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
This commit is contained in:
parent
6aadbef815
commit
48d30dfca2
@ -619,8 +619,10 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc
|
|||||||
m_LastDigBlockY = a_BlockY;
|
m_LastDigBlockY = a_BlockY;
|
||||||
m_LastDigBlockZ = a_BlockZ;
|
m_LastDigBlockZ = a_BlockZ;
|
||||||
|
|
||||||
// In creative mode, digging is done immediately
|
if (
|
||||||
if (m_Player->GetGameMode() == eGameMode_Creative)
|
(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);
|
HandleBlockDigFinished(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user