MrCrayfishGunMod icon indicating copy to clipboard operation
MrCrayfishGunMod copied to clipboard

Gun workbench crashes if there's no recipes

Open slava110 opened this issue 3 years ago • 0 comments

You can find crash in #315 This happens because Create Gun Recipes Datapack removes all gun workbench recipes image 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

slava110 avatar Jul 18 '22 14:07 slava110