summaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-11 20:22:32 +0200
committersfan5 <sfan5@live.de>2020-05-24 11:48:33 +0200
commit5430770b6851a18417f6b2629c9167a5aa38baa5 (patch)
treef9814d67a2510130f464063b2aa752b6101f76aa /src/clientiface.cpp
parenta9d6be8b6f769c1b795262f45e81bcb4a2cea4a1 (diff)
downloadminetest-5430770b6851a18417f6b2629c9167a5aa38baa5.tar.gz
minetest-5430770b6851a18417f6b2629c9167a5aa38baa5.tar.bz2
minetest-5430770b6851a18417f6b2629c9167a5aa38baa5.zip
Fix constant re-queueing of emerges that will always be unsuccessful
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r--src/clientiface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp
index 4f954342a..602a44c90 100644
--- a/src/clientiface.cpp
+++ b/src/clientiface.cpp
@@ -344,10 +344,10 @@ void RemoteClient::GetNextBlocks (
}
/*
- If block has been marked to not exist on disk (dummy)
- and generating new ones is not wanted, skip block.
+ If block has been marked to not exist on disk (dummy) or is
+ not generated and generating new ones is not wanted, skip block.
*/
- if (!generate && surely_not_found_on_disk) {
+ if (!generate && (surely_not_found_on_disk || block_is_invalid)) {
// get next one.
continue;
}