Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Dec 28, 2024
1 parent 357d3bc commit aa5cbf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/client/fm_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ void Client::handleCommand_BlockDataFm(NetworkPacket *pkt)
} else {
static thread_local const auto farmesh_server =
g_settings->getU16("farmesh_server");
if (!farmesh_server) {
static thread_local const auto farmesh = g_settings->getU16("farmesh");
if (!farmesh_server || !farmesh) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/fm_clientiface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ uint32_t RemoteClient::SendFarBlocks()
}

// TODO: why not have?
if (have_farmesh_quality) {
if (farmesh && have_farmesh_quality && farmesh_all_changed) {
auto *player = m_env->getPlayer(peer_id);
if (!player)
return 0;
Expand Down

0 comments on commit aa5cbf1

Please sign in to comment.