Merge pull request #269 from TheLonelyWolf1/master

Fix Error with Custom Heads on 1.20.2
This commit is contained in:
RockyHawk 2023-10-04 18:43:00 +11:00 committed by GitHub
commit 0de82db750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");