mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
WorldManager: log after first chunk's generation has been completed
this is as close as we can get to the actual start of generation.
This commit is contained in:
parent
506a235d7a
commit
8af6b112d2
@ -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%)");
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user