MCModderAnchor / TACZ

132 stars 25 forks source link

Bug Fix Null Pointer Exception when gun crafting with edited default gun pack #263

Open hikokio opened 1 month ago

hikokio commented 1 month ago

Reason for change

After removing some items from the default gun pack (I'm creating a modpack with only the pistols, and many attachments are removed), opening the gun crafting table causes a null pointer exception as the recipeIdGroups is null instead of an empty object. This crashes the client.

After adding the check for null the user is able to use the gun crafting table without crashing.