mirror of
https://github.com/elyby/chrly.git
synced 2024-12-02 03:30:54 +05:30
Учитываем ситуацию, когда скин есть, а просчитанной текстуры - нет
This commit is contained in:
parent
e652691b29
commit
39f5ec5bee
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user