mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 22:29:07 +02:00
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:
parent
05d8faeb5c
commit
e18761a3e4
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue