From 1f0f696151c3f8503c585813eec41d82b173a73a Mon Sep 17 00:00:00 2001 From: jomo Date: Mon, 11 Jan 2016 07:37:28 +0100 Subject: [PATCH] Make sure 'slim' model is correctly checked The 'textures.SKIN.metadata.model' field seems to be only present if set to 'slim', so currently this change has no effect however, if the field is returned in other cases (in future), we need to make sure it acually reports 'slim' --- lib/networking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/networking.js b/lib/networking.js index a9a622c..8cb5e4a 100644 --- a/lib/networking.js +++ b/lib/networking.js @@ -135,7 +135,7 @@ exp.get_uuid_info = function(profile, type, callback) { var url = Object.get(profile, "textures." + type + ".url"); var slim; if (type === "SKIN") { - slim = Object.get(profile, "textures.SKIN.metadata.model"); + slim = Object.get(profile, "textures.SKIN.metadata.model") === "slim"; } callback(url || null, !!slim);