MrCrayfishGunMod
MrCrayfishGunMod copied to clipboard
Gun workbench crashes if there's no recipes
You can find crash in #315
This happens because Create Gun Recipes Datapack removes all gun workbench recipes
And because there's no gun recipes currentItem field is null on GUI init and this line is causing a crash
https://github.com/MrCrayfish/MrCrayfishGunMod/blob/b79204ee05020ab325ca6272ff4c407e93130602/src/main/java/com/mrcrayfish/guns/client/screen/WorkbenchScreen.java#L408
I know that this is very specific issue but would be cool to get some kind of warning or empty recipe screen without a crash