resource: extract.py: pass directory of unpacked Minecraft JAR, not full path to assets

Make the script easier to use, and more consistent with sign_textures.py.
This commit is contained in:
Matthias Schiffer 2024-01-11 12:42:25 +01:00
parent 05d8faeb5c
commit e18761a3e4
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ if len(sys.argv) != 4:
sys.exit('Usage: extract.py <blocks.json> <asset directory> <colors.json>')
def mean_color(texture):
path = os.path.join(sys.argv[2], texture + '.png')
path = os.path.join(sys.argv[2], 'assets/minecraft/textures/block', texture + '.png')
im = Image.open(path)
data = im.convert('RGBA').getdata()