1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix "ghost" blocks if block update is "on wire" while player digs nodes

This commit is contained in:
sapier 2014-07-12 20:20:11 +02:00
parent 247a1ebf23
commit 8e9d896f2d
3 changed files with 31 additions and 7 deletions

View file

@ -238,6 +238,14 @@ public:
void SetBlockNotSent(v3s16 p);
void SetBlocksNotSent(std::map<v3s16, MapBlock*> &blocks);
/**
* tell client about this block being modified right now.
* this information is required to requeue the block in case it's "on wire"
* while modification is processed by server
* @param p position of modified block
*/
void ResendBlockIfOnWire(v3s16 p);
s32 SendingCount()
{
return m_blocks_sending.size();