2
0
jomo 10 жил өмнө
parent
commit
baa87bc23b

+ 2 - 2
modules/helpers.js

@@ -241,7 +241,7 @@ exp.get_skin = function(rid, uuid, callback) {
           callback(err, hash, img);
           callback(err, hash, img);
         });
         });
       } else {
       } else {
-        networking.save_texture(rid, uuid, hash, skinpath, function(err, response, img) {
+        networking.save_texture(rid, hash, skinpath, function(err, response, img) {
           callback(err, hash, img);
           callback(err, hash, img);
         });
         });
       }
       }
@@ -310,7 +310,7 @@ exp.get_cape = function(rid, uuid, callback) {
           callback(err, hash, img);
           callback(err, hash, img);
         });
         });
       } else {
       } else {
-        networking.save_texture(rid, uuid, hash, capepath, function(err, response, img) {
+        networking.save_texture(rid, hash, capepath, function(err, response, img) {
           if (response && response.statusCode === 404) {
           if (response && response.statusCode === 404) {
             callback(err, hash, null);
             callback(err, hash, null);
           } else {
           } else {

+ 1 - 1
modules/networking.js

@@ -155,7 +155,7 @@ function getUrl(rid, uuid, profile, type, callback) {
   }
   }
 }
 }
 
 
-exp.save_texture = function(rid, uuid, hash, outpath, callback) {
+exp.save_texture = function(rid, hash, outpath, callback) {
   if (hash) {
   if (hash) {
     var textureurl = "http://textures.minecraft.net/texture/" + hash;
     var textureurl = "http://textures.minecraft.net/texture/" + hash;
     exp.get_from(rid, textureurl, function(img, response, err) {
     exp.get_from(rid, textureurl, function(img, response, err) {