Implement null check in drawToolStats (#251)

This commit is contained in:
PLASMAchicken authored and GitHub committed 2026-02-03 18:47:56 +00:00
1 parent 03968731d9
commit a59ee11285
1 file changed
+2
@@ -164,6 +164,8 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler {
}
void drawToolStats(ItemStack stack) {
if (stack == null) return;
if (stack.getItem() instanceof IModifyable) ToolStationGuiHelper.drawToolStats(stack, descTextLeft + 10, 0);
int matID = PatternBuilder.instance.getPartID(stack);