1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-13 12:45:29 +01:00

Revert part of 16013 - restore liquid updates to the client (#16663)

This reverts 00addc3e5d
Fixes: #16662
This commit is contained in:
lhofhansl
2025-11-11 11:10:49 -08:00
committed by GitHub
parent 760b20504f
commit 6ac8346c6d
5 changed files with 20 additions and 29 deletions

View File

@@ -765,7 +765,6 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
if (!modified_blocks.empty()) {
MapEditEvent event;
event.type = MEET_OTHER;
event.low_priority = true;
event.setModifiedBlocks(modified_blocks);
m_env->getMap().dispatchEvent(event);
}
@@ -1023,7 +1022,7 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
}
case MEET_OTHER:
prof.add("MEET_OTHER", 1);
m_clients.markBlocksNotSent(event->modified_blocks, event->low_priority);
m_clients.markBlocksNotSent(event->modified_blocks);
break;
default:
prof.add("unknown", 1);
@@ -1039,7 +1038,7 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
*/
for (const u16 far_player : far_players) {
if (RemoteClient *client = getClient(far_player))
client->SetBlocksNotSent(event->modified_blocks, event->low_priority);
client->SetBlocksNotSent(event->modified_blocks);
}
delete event;