Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skulls missing Owner Details when in BlockMenu #134

Open
4 tasks done
Sefiraat opened this issue Jan 29, 2022 · 1 comment
Open
4 tasks done

Skulls missing Owner Details when in BlockMenu #134

Sefiraat opened this issue Jan 29, 2022 · 1 comment

Comments

@Sefiraat
Copy link
Member

❗ 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

@JustAHuman-xD
Copy link

Not sure if this will be useful in the slightest, but this problem has nothing to do with the saving as in the file it has all the proper data:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants