add support for slim renders, fixes #125, adjust tests

This commit is contained in:
jomo
2015-12-13 14:08:59 +01:00
parent 7eed1fa09b
commit 3c21a59c94
7 changed files with 162 additions and 121 deletions

View File

@@ -36,7 +36,7 @@ function handle_default(rid, scale, helm, body, img_status, userId, size, def, r
// handle steve and alex
fs.readFile(path.join(__dirname, "..", "public", "images", def + "_skin.png"), function(fs_err, buf) {
// we render the default skins, but not custom images
renders.draw_model(rid, buf, scale, helm, body, function(render_err, def_img) {
renders.draw_model(rid, buf, scale, helm, body, def === "alex", function(render_err, def_img) {
callback({
status: img_status,
body: def_img,