Fix error in update script [untested]

https://forum.minetest.net/viewtopic.php?p=156986#p156986
This commit is contained in:
SmallJoker 2014-10-05 18:26:25 +02:00
parent 8d5709661f
commit a4921558f3

View File

@ -31,7 +31,7 @@ def addpage(page):
pages = int(l["pages"]) pages = int(l["pages"])
for s in l["skins"]: for s in l["skins"]:
f = open(skinsdir + "character_" + str(i) + ".png", "wb") f = open(skinsdir + "character_" + str(i) + ".png", "wb")
f.write(base64.b64decode(s["img"])) f.write(base64.b64decode(bytes(s["img"], 'utf-8')))
f.close() f.close()
f = open(metadir + "character_" + str(i) + ".txt", "w") f = open(metadir + "character_" + str(i) + ".txt", "w")
f.write(str(s["name"]) + '\n') f.write(str(s["name"]) + '\n')