-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor
-
None
-
Affects Version/s: None
-
None
-
4226-Spigot-146439e-2889b3a 1.21-R0.1-SNAPSHOT
-
Yes
If an item's SkullMeta has an owner profile but the profile's name is null, it returns null. This means that if a head is made without the name property the profile object cannot be collected.
For example, the https://minecraft-heads.com/ website does not provide the name property as shown in this code block and this head will return null when using SkullMeta#getOwnerProfile
/give @p minecraft:player_head[profile={id:[I;-1713734374,1097286524,-1815675771,-1473225903],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTUyNDVjMGQwOGQ2YTk3ZGM5MWY4Nzg0NTY1NTQ1MTRlY2NhOTQ4ZGIxMGYyYzk0NzE4MGMxMzM1NTQ4NjI5In19fQ=="}]}] 1
Whereas if the name property is included in the profile the method will work:
/give @p player_head[profile={name:"HeadDB",id:[I;-1713734374,1097286524,-1815675771,-1473225903],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTUyNDVjMGQwOGQ2YTk3ZGM5MWY4Nzg0NTY1NTQ1MTRlY2NhOTQ4ZGIxMGYyYzk0NzE4MGMxMzM1NTQ4NjI5In19fQ=="}]}] 1