Skip to content

Skulls missing Owner Details when in BlockMenu #134

@Sefiraat

Description

@Sefiraat

❗ Checklist

  • I am using the official english version of Slimefun and did not modify the jar.
  • I am using an up to date "DEV" (not "RC") version of Slimefun.
  • I am aware that issues related to Slimefun addons need to be reported on their bug trackers and not here.
  • I searched for similar open issues and could not find an existing bug report on this.

📍 Description

When getting a Player Head ItemStack using BlockMenu#getItemInSlot() the given ItemStack's SkullMeta does not have the owner details available.

📑 Reproduction Steps

image
In the above shot, instanceOne is derived from SlimfunItem#getRecipeOutput and has the owner details (for reference, it's a Cargo node). 'instanceTwo' is the ItemStack via BlockMenu#getItemInSlot and is the correct ItemStack in all bar this one element. The Skull meta has all details (including GameProfile with the correct UUID) but no owner name in the profile and thus 'getOwningPlayer()` is retuning null.

image
When pulling the ItemStack out by hand and checking the meta then, you get the above screenshot with the correct owner information within.

💡 Expected Behavior

The ItemStacks should match each other perfectly - at least with the correct owner details.

📷 Screenshots / Videos

image

📜 Server Log

No response

📂 /error-reports/ folder

No response

💻 Server Software

Paper

🎮 Minecraft Version

1.17.x

⭐ Slimefun version

Dev 999

🧭 Other plugins

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions