crazykid080 14 Share 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) Link to comment Share on other sites More sharing options...
pharaoh 130 Share 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")); Link to comment Share on other sites More sharing options...
crazykid080 14 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.