이미지를 이름 대신 uuid로 가져오도록 수정
This commit is contained in:
parent
79cb8019ac
commit
17d23519d7
2 changed files with 4 additions and 4 deletions
|
|
@ -247,7 +247,7 @@ const ServerDetail = ({ isMobile = false }) => {
|
|||
>
|
||||
<div className="relative">
|
||||
<img
|
||||
src={`https://minotar.net/helm/${player.name}/24.png`}
|
||||
src={`https://minotar.net/helm/${player.uuid}/24.png`}
|
||||
alt={player.name}
|
||||
className="w-6 h-6 rounded-sm"
|
||||
onError={(e) => {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const WorldsPage = ({ isMobile = false }) => {
|
|||
// 초기 데이터 요청
|
||||
socket.emit('get_worlds');
|
||||
|
||||
// 5초마다 갱신
|
||||
// 1초마다 갱신
|
||||
const interval = setInterval(() => {
|
||||
socket.emit('get_worlds');
|
||||
}, 1000);
|
||||
|
|
@ -190,8 +190,8 @@ const WorldsPage = ({ isMobile = false }) => {
|
|||
{/* 모바일: 머리만, PC: 전신 */}
|
||||
<img
|
||||
src={isMobile
|
||||
? `https://mc-heads.net/avatar/${player.name}/40`
|
||||
: `https://mc-heads.net/body/${player.name}/60`
|
||||
? `https://mc-heads.net/avatar/${player.uuid}/40`
|
||||
: `https://mc-heads.net/body/${player.uuid}/60`
|
||||
}
|
||||
alt={player.name}
|
||||
className={isMobile ? 'w-10 h-10 rounded' : 'h-16 w-auto'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue