fix: correct function name to retrieve world blocks in chunk analysis endpoint

This commit is contained in:
MayaTheShy
2026-02-20 04:03:54 -05:00
parent 60c5b3aaba
commit ec5f048d49

View File

@@ -1069,7 +1069,7 @@ app.post('/api/chunks/:x/:z/analyze', (req, res) => {
const maxZ = minZ + 15;
// Get all blocks in the chunk from the DB
const blocks = db.getBlocksInArea(minX, -64, minZ, maxX, 320, maxZ);
const blocks = db.getWorldBlocksInArea(minX, -64, minZ, maxX, 320, maxZ);
// Count ores
const oreCounts = {};