chore: refractor
This commit is contained in:
15
ServerScriptService/CmdrCommands/ChunkDumpServer.lua
Normal file
15
ServerScriptService/CmdrCommands/ChunkDumpServer.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return function(context, cx, cy, cz)
|
||||
local terrainGen = require(
|
||||
game:GetService("ServerScriptService")
|
||||
:WaitForChild("Actor")
|
||||
:WaitForChild("ServerChunkManager")
|
||||
:WaitForChild("TerrainGen")
|
||||
)
|
||||
|
||||
local chunk = terrainGen:GetChunk(cx, cy, cz)
|
||||
local count = 0
|
||||
for _ in pairs(chunk.data) do
|
||||
count += 1
|
||||
end
|
||||
return ("Chunk %d,%d,%d has %d blocks"):format(cx, cy, cz, count)
|
||||
end
|
||||
Reference in New Issue
Block a user