默认头像从随机改为由uid确定

This commit is contained in:
MrZ626
2021-04-27 11:48:34 +08:00
parent 3d7584b015
commit 530c87b81e

View File

@@ -36,7 +36,7 @@ local db=setmetatable({},{__index=function(self,k)
db_img[k]=
type(d.hash)=="string"and #d.hash>0 and fs.getInfo("cache/"..d.hash)and
loadAvatar("cache/"..d.hash)or
defaultAvatar[math.random(29)]
defaultAvatar[k%28+1]
return d
end})