mod command: print enqueued chunk count
This commit is contained in:
parent
0b2bd7d10d
commit
023fb8b3de
1 changed files with 3 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ commands.add_command(
|
||||||
const chunkYMax = chunkPosition.y + radius
|
const chunkYMax = chunkPosition.y + radius
|
||||||
|
|
||||||
// let i = 100
|
// let i = 100
|
||||||
|
let chunkCount = 0
|
||||||
for (const [, surface] of game.surfaces) {
|
for (const [, surface] of game.surfaces) {
|
||||||
for (const chunk of surface.get_chunks()) {
|
for (const chunk of surface.get_chunks()) {
|
||||||
if (
|
if (
|
||||||
|
|
@ -63,12 +64,13 @@ commands.add_command(
|
||||||
data,
|
data,
|
||||||
50
|
50
|
||||||
)
|
)
|
||||||
|
chunkCount++
|
||||||
// handleChunkGeneratedEvent(data, i)
|
// handleChunkGeneratedEvent(data, i)
|
||||||
// i = i + 10
|
// i = i + 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
player.print(`enqueued ${chunkCount} chunks`)
|
||||||
}
|
}
|
||||||
} else if (paramUppercase.startsWith("INIT_GLOBAL")) {
|
} else if (paramUppercase.startsWith("INIT_GLOBAL")) {
|
||||||
initGlobal(paramUppercase.startsWith("INIT_GLOBAL FORCE"))
|
initGlobal(paramUppercase.startsWith("INIT_GLOBAL FORCE"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue