crazykid080 14 Share Posted October 31, 2020 (edited) 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) Edited October 31, 2020 by crazykid080 Link to comment Share on other sites More sharing options...
pharaoh 122 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")); Pseudo 1 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now