fix getting wrong index from arguments

This commit is contained in:
DBotThePony 2022-09-05 16:11:49 +07:00
parent f0790eec1e
commit 11484eeec3
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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`)