From 1c04d7b04db97b80de4bd5549fc87349eabe0e85 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 24 Dec 2023 15:45:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20UUID=E3=81=A8=E5=90=8D=E5=89=8D=E3=82=92?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB?= =?UTF-8?q?=E9=A0=AD=E3=81=AE=E3=83=86=E3=82=AF=E3=82=B9=E3=83=81=E3=83=A3?= =?UTF-8?q?=E3=81=8C=E6=AD=A3=E3=81=97=E3=81=8F=E3=81=AA=E3=81=84=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemstackbuilder/SkullItemStackBuilder.scala | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/scala/com/github/unchama/itemstackbuilder/SkullItemStackBuilder.scala b/src/main/scala/com/github/unchama/itemstackbuilder/SkullItemStackBuilder.scala index 1cb5527f1f..99a59f5fac 100644 --- a/src/main/scala/com/github/unchama/itemstackbuilder/SkullItemStackBuilder.scala +++ b/src/main/scala/com/github/unchama/itemstackbuilder/SkullItemStackBuilder.scala @@ -33,17 +33,6 @@ class SkullItemStackBuilder(private val owner: SkullOwnerReference) meta.setOwningPlayer(Bukkit.getOfflinePlayer(uuid)) val gameProfile = new GameProfile(uuid, name) - val textureUrl = - s"http://textures.minecraft.net/texture/${uuid.toString.replaceAll("-", "")}" - - val encodedData = Base64.encodeBase64( - String.format("{textures:{SKIN:{url:\"%s\"}}}", textureUrl).getBytes - ) - - gameProfile - .getProperties - .put("textures", new Property("textures", new String(encodedData))) - val profileField = meta.getClass.getDeclaredField("profile") profileField.setAccessible(true) profileField.set(meta, gameProfile)