Reduce block load glitches
authorLars Hofhansl <larsh@apache.org>
Thu, 12 Jul 2018 07:53:50 +0000 (00:53 -0700)
committerLars Hofhansl <larsh@apache.org>
Thu, 12 Jul 2018 07:54:00 +0000 (00:54 -0700)
See #7542
This reduces glitches in deep water and underground caves.

src/clientiface.cpp

index ba24af61fab4ec82abba36a6cef6639078a52e8b..53c3fe9cd282ae4863442f0134c8df5172aae75d 100644 (file)
@@ -332,7 +332,7 @@ void RemoteClient::GetNextBlocks (
                                        differs from day-time mesh.
                                */
                                if (d >= d_opt) {
-                                       if (!block->getDayNightDiff())
+                                       if (!block->getIsUnderground() && !block->getDayNightDiff())
                                                continue;
                                }