mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
fix
This commit is contained in:
1 parent
3be0078b2a
commit
994e446fab
1 file changed
+1
-1
@@ -222,7 +222,7 @@ MapgenEarth::MapgenEarth(MapgenEarthParams *params_, EmergeParams *emerge) :
|
||||
}
|
||||
}
|
||||
|
||||
if (std::filesystem::exists(heat_img)) {
|
||||
if (std::filesystem::file_size(heat_img)) {
|
||||
const auto lock = std::lock_guard(maps_holder->download_lock);
|
||||
if (!maps_holder->heat_image) {
|
||||
maps_holder->heat_image = std::make_unique<PngImage>(heat_img);
|
||||
|
||||
Reference in new issue
Block a user