From 11484eeec376d99bc35fd870470a5b43836671a7 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 5 Sep 2022 16:11:49 +0700 Subject: [PATCH] fix getting wrong index from arguments --- colorizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorizer.js b/colorizer.js index 7cbdf3f02..537ccf946 100644 --- a/colorizer.js +++ b/colorizer.js @@ -61,7 +61,7 @@ async function size(path) { (async function() { if (args.length == 1) { - const texture = args[1] + const texture = args[0] if (!fs.existsSync(`${root_main}${texture}.png`)) { process.stderr.write(`${texture}.png does not exist\n`)