From 8af6b112d2446afbf4f79cffcda857402257c640 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 15 Apr 2021 14:01:28 +0100 Subject: [PATCH] WorldManager: log after first chunk's generation has been completed this is as close as we can get to the actual start of generation. --- src/world/WorldManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/WorldManager.php b/src/world/WorldManager.php index 2e8ffe5ee8..b34a3621cb 100644 --- a/src/world/WorldManager.php +++ b/src/world/WorldManager.php @@ -281,7 +281,7 @@ class WorldManager{ static function() use ($world, &$done, $total) : void{ $oldProgress = (int) floor(($done / $total) * 100); $newProgress = (int) floor((++$done / $total) * 100); - if(intdiv($oldProgress, 10) !== intdiv($newProgress, 10) || $done === $total){ + if(intdiv($oldProgress, 10) !== intdiv($newProgress, 10) || $done === $total || $done === 1){ $world->getLogger()->info("Generating spawn terrain chunks: $done / $total ($newProgress%)"); } },