Oheers / EvenMoreFish

An advanced fishing plugin based on MoreFish, created 2 years after its last update.
MIT License
91 stars 56 forks source link

Fixes some exceptions #282

Closed FireML closed 5 months ago

FireML commented 5 months ago

Adds a catch block in FishUtils#getFish(Skull, Player) which uses the fisher UUID if playerString is invalid. Should fix the following error: image

Adds a null check to FishingProcessor#getFish, since that was causing issues: image

Adds a method to NbtUtils to get an NBTItem object so we can get null instead of an NPE. This has been used in WorthNBT#getValue to prevent warnings: image

FireML commented 5 months ago

I have a build of it here: https://github.com/FireML/EvenMoreFish/releases/tag/exception-fix