X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fclientiface.h;h=5335fa6442ac601066bb27cc8c65adbc039492b1;hb=5f1cd555cd9d1c64426e173b30b5b792d211c835;hp=291ccd4016f096c6d61c93355774a299ffbac756;hpb=6036f865cba44fd26374a3a649370f51d5d4ff6c;p=oweals%2Fminetest.git 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.