#Weird NPE

1 messages · Page 1 of 1 (latest)

fresh path
#

I have a system for changing what I refer to as Item States in GUIs. It's used to toggle all types of settings. (In this case specifically, player settings.) I'm currently running into an issue where one item isn't toggling like the rest and it only happens when I try to switch the item to it's disabled state. I'm switching a wither skeleton skull out for a player head with a custom skin.

Here's the error: https://paste.md-5.net/ixaceruyuq.cs

The weird part about this is that the same method is used to create heads in other menus. So I'm wondering why is it causing an issue with this one player head. Considering the error is telling me that an NBTTagCompound is null, it leads me to believe that something is wrong with my method for creating the head. However, that same method is used in other GUIs and works perfectly fine. This is really confusing me because this method worked fine before. I'm not sure why it started breaking.

My project is open source btw. https://gitlab.com/Nothixal/hugs

This is the method used to create the custom player head: https://gitlab.com/Nothixal/hugs/-/blob/master/1_18_R1/src/main/java/me/nothixal/hugs/managers/items/Item_v1_18_R1.java#L228

tawny nacelle
#

If not it will be really difficult

fresh path
#

I plan on moving to one eventually, but what I have just works right now. The weirdest part about this is that it was working before, pretty recently too. I'm not sure why it's just this one item is causing issues.