Fix Error with Custom Heads on 1.20.2

This commit is contained in:
TheLonelyWolf 2023-10-03 12:32:53 +02:00
parent f384bec035
commit 13ceeb43a1

View File

@ -128,7 +128,7 @@ public class GetCustomHeads {
@SuppressWarnings("deprecation")
public ItemStack getCustomHead(String b64stringtexture) {
//get head from base64
GameProfile profile = new GameProfile(UUID.randomUUID(), null);
GameProfile profile = new GameProfile(UUID.randomUUID(), "");
PropertyMap propertyMap = profile.getProperties();
if (propertyMap == null) {
throw new IllegalStateException("Profile doesn't contain a property map");