Files
strom/data/minecraft-data/tools/js/test/version_iterator.js
T
2026-03-22 19:49:37 +01:00

15 lines
379 B
JavaScript

module.exports = forEach
const path = require('path')
const minecraftTypes = ['pc', 'bedrock']
function forEach (f) {
minecraftTypes.forEach(function (type) {
const versions = require('../../../data/' + type + '/common/versions')
versions.forEach(function (version) {
f(path.join(__dirname, '../../../data', type, version), type + ' ' + version)
})
})
}