mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -52,6 +52,13 @@ std::string ClientInterface::state2Name(ClientState state)
|
|||
return statenames[state];
|
||||
}
|
||||
|
||||
void RemoteClient::ResendBlockIfOnWire(v3s16 p)
|
||||
{
|
||||
// if this block is on wire, mark it for sending again as soon as possible
|
||||
if (m_blocks_sending.find(p) != m_blocks_sending.end()) {
|
||||
SetBlockNotSent(p);
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteClient::GetNextBlocks(
|
||||
ServerEnvironment *env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue