1
0
Fork 0
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:
sapier 2014-07-12 20:20:11 +02:00
parent 247a1ebf23
commit 8e9d896f2d
3 changed files with 31 additions and 7 deletions

View file

@ -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,