mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-27 22:24:12 +00:00
fix: update data to 1.21.4
This commit is contained in:
parent
a5bea3b585
commit
e4719200d3
19 changed files with 3281 additions and 300 deletions
|
|
@ -9,7 +9,7 @@ const versionRegex = require("../data/versions.json");
|
|||
const INPUT = path.join(__dirname, "../blocks/");
|
||||
const OUTPUT_DIR = path.join(__dirname, "../output/");
|
||||
const OUTPUT = path.join(OUTPUT_DIR, "data.json");
|
||||
const VERSION_DATA = minecraftData("1.13.2");
|
||||
const VERSION_DATA = minecraftData("1.21.3");
|
||||
|
||||
if (!fs.existsSync(OUTPUT_DIR)) fs.mkdirSync(OUTPUT_DIR);
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ const data = {};
|
|||
|
||||
const color = await getAverageColor(filePath);
|
||||
|
||||
const nameRegex = ["_top", "_side", "_front", "_back"];
|
||||
const nameRegex = ["_top", "_side", "_front", "_back", "_bottom"];
|
||||
const pattern = new RegExp(nameRegex.join("|"), "g");
|
||||
const blockName = fileName.replace(pattern, "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue