fix: correct function name to retrieve world blocks in chunk analysis endpoint
This commit is contained in:
@@ -1069,7 +1069,7 @@ app.post('/api/chunks/:x/:z/analyze', (req, res) => {
|
|||||||
const maxZ = minZ + 15;
|
const maxZ = minZ + 15;
|
||||||
|
|
||||||
// Get all blocks in the chunk from the DB
|
// 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
|
// Count ores
|
||||||
const oreCounts = {};
|
const oreCounts = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user