이미지를 이름 대신 uuid로 가져오도록 수정

This commit is contained in:
caadiq 2025-12-17 18:46:14 +09:00
parent 79cb8019ac
commit 17d23519d7
2 changed files with 4 additions and 4 deletions

View file

@ -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) => {

View file

@ -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'}