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:
parent
247a1ebf23
commit
8e9d896f2d
3 changed files with 31 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue