crazykid080 14 Posted October 31, 2020 Item bones = Inventory.get(bone -> bone.getName().contains("Bones")); This is the part that's throwing a null error and I don't understand why. My sheer anger is probably making the obvious solution but who knows (Took a break and made some food to cool off, nothing immediately comes to mind so please help)
pharaoh 135 Posted October 31, 2020 i believe you need to null check it so it will be: Item bones = Inventory.get(bone -> bone != null && bone.getName().contains("Bones"));
crazykid080 14 Author Posted October 31, 2020 Oh for.... Yep... that is very likely to be it, I should have known it too but nope, I just completely blanked on that
Recommended Posts
Archived
This topic is now archived and is closed to further replies.