diff --git a/lib/routes/Skin.go b/lib/routes/Skin.go index ca4f42f..650fd37 100644 --- a/lib/routes/Skin.go +++ b/lib/routes/Skin.go @@ -16,7 +16,6 @@ func Skin(w http.ResponseWriter, r *http.Request) { rec, err := data.FindRecord(username) if (err != nil) { http.Redirect(w, r, "http://skins.minecraft.net/MinecraftSkins/" + username + ".png", 301) - log.Println("Cannot get skin for username " + username) return } diff --git a/lib/routes/Textures.go b/lib/routes/Textures.go index b05df03..e298922 100644 --- a/lib/routes/Textures.go +++ b/lib/routes/Textures.go @@ -19,11 +19,13 @@ func Textures(w http.ResponseWriter, r *http.Request) { if (err != nil || rec.SkinId == 0) { rec.Url = "http://skins.minecraft.net/MinecraftSkins/" + username + ".png" rec.Hash = string(tools.BuildNonElyTexturesHash(username)) + } else { + rec.Url = tools.BuildElyUrl(rec.Url) } textures := data.TexturesResponse{ Skin: &data.Skin{ - Url: tools.BuildElyUrl(rec.Url), + Url: rec.Url, Hash: rec.Hash, }, }