From 023fb8b3debf3821d843e53d0c9ecfe30f6e4826 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sun, 1 May 2022 09:44:20 +0200 Subject: [PATCH] mod command: print enqueued chunk count --- .../src/main/typescript/main/commands/kafkatorioCommands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts b/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts index 1443028..7e15a54 100644 --- a/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts +++ b/modules/events-mod/src/main/typescript/main/commands/kafkatorioCommands.ts @@ -42,6 +42,7 @@ commands.add_command( const chunkYMax = chunkPosition.y + radius // let i = 100 + let chunkCount = 0 for (const [, surface] of game.surfaces) { for (const chunk of surface.get_chunks()) { if ( @@ -63,12 +64,13 @@ commands.add_command( data, 50 ) - + chunkCount++ // handleChunkGeneratedEvent(data, i) // i = i + 10 } } } + player.print(`enqueued ${chunkCount} chunks`) } } else if (paramUppercase.startsWith("INIT_GLOBAL")) { initGlobal(paramUppercase.startsWith("INIT_GLOBAL FORCE"))