summaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-12 20:20:11 +0200
committersapier <Sapier at GMX dot net>2014-08-22 20:56:16 +0200
commit8e9d896f2d4bd3c9579170d01e14f1dd5e514362 (patch)
tree69f53c3cb51e481ccd21418470f552b60b57ef11 /src/clientiface.cpp
parent247a1ebf2317556eea79a018fb236a0145e55121 (diff)
downloadminetest-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.tar.gz
minetest-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.tar.bz2
minetest-8e9d896f2d4bd3c9579170d01e14f1dd5e514362.zip
Fix "ghost" blocks if block update is "on wire" while player digs nodes
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r--src/clientiface.cpp7
1 files changed, 7 insertions, 0 deletions
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,