buttilda / Headcrumbs

Headcrumbs
aww yiss
14 stars 21 forks source link

Fix ItemStatue's display name sometimes being null #109

Closed AlexIIL closed 6 years ago

AlexIIL commented 6 years ago

Sometimes HeadUtils.getName() will return null if the stack is invalid or there's some other issue with the stack.

This was found in https://pastebin.com/raw/RdvFG6zX (BuildCraft/BuildCraft#4268)

(Committed on github directly, while I can't see any mistakes please change and/or compile this yourself to check that it still works)