From 8e9d896f2d4bd3c9579170d01e14f1dd5e514362 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 12 Jul 2014 20:20:11 +0200 Subject: Fix "ghost" blocks if block update is "on wire" while player digs nodes --- src/clientiface.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/clientiface.cpp') diff --git a/src/clientiface.cpp b/src/clientiface.cpp index 2841b212f..ebbbc65bc 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -52,6 +52,13 @@ std::string ClientInterface::state2Name(ClientState state) return statenames[state]; } +void RemoteClient::ResendBlockIfOnWire(v3s16 p) +{ + // if this block is on wire, mark it for sending again as soon as possible + if (m_blocks_sending.find(p) != m_blocks_sending.end()) { + SetBlockNotSent(p); + } +} void RemoteClient::GetNextBlocks( ServerEnvironment *env, -- cgit v1.2.3