]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientiface.h
Check node updates whether the blocks are known (#7568)
[minetest.git] / src / clientiface.h
index 291ccd4016f096c6d61c93355774a299ffbac756..5335fa6442ac601066bb27cc8c65adbc039492b1 100644 (file)
@@ -274,6 +274,11 @@ class RemoteClient
 
        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.