Учитываем ситуацию, когда скин есть, а просчитанной текстуры - нет

This commit is contained in:
ErickSkrauch 2017-04-01 12:22:48 +03:00
parent e652691b29
commit 39f5ec5bee

View File

@ -17,7 +17,7 @@ func SignedTextures(w http.ResponseWriter, r *http.Request) {
username := tools.ParseUsername(mux.Vars(r)["username"]) username := tools.ParseUsername(mux.Vars(r)["username"])
rec, err := data.FindSkinByUsername(username) rec, err := data.FindSkinByUsername(username)
if (err != nil || rec.SkinId == 0) { if (err != nil || rec.SkinId == 0 || rec.MojangTextures == "") {
w.WriteHeader(http.StatusNoContent) w.WriteHeader(http.StatusNoContent)
return return
} }