summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-08-16 20:10:34 +0200
committerGitHub <noreply@github.com>2018-08-16 20:10:34 +0200
commit297beea5bf95c8ea0b6fe08aed287b94487d24ea (patch)
tree60534b5da23a3a3386a1a5fdbb71cc9f977ebfba /src/clientiface.h
parent325bf680410e8012394e5f3ba5ba947c69034899 (diff)
downloadminetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.tar.gz
minetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.tar.bz2
minetest-297beea5bf95c8ea0b6fe08aed287b94487d24ea.zip
Check node updates whether the blocks are known (#7568)
* Remove unused ignore_id
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index 291ccd401..5335fa644 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -274,6 +274,11 @@ public:
u32 getSendingCount() const { return m_blocks_sending.size(); }
+ bool isBlockSent(v3s16 p) const
+ {
+ return m_blocks_sent.find(p) != m_blocks_sent.end();
+ }
+
// Increments timeouts and removes timed-out blocks from list
// NOTE: This doesn't fix the server-not-sending-block bug
// because it is related to emerging, not sending.