From c2b49a46c6c28a121ce4de28b8d92fd89d7218a6 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Thu, 17 Oct 2024 21:38:43 +0300 Subject: [PATCH] Fixed crash with recipe schemas and probe --- src/main/java/dev/latvian/mods/kubejs/recipe/RecipeKey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/latvian/mods/kubejs/recipe/RecipeKey.java b/src/main/java/dev/latvian/mods/kubejs/recipe/RecipeKey.java index e6cf50bde..a44f13619 100644 --- a/src/main/java/dev/latvian/mods/kubejs/recipe/RecipeKey.java +++ b/src/main/java/dev/latvian/mods/kubejs/recipe/RecipeKey.java @@ -208,7 +208,7 @@ public RecipeKey alwaysWrite() { } public String getPreferredBuilderKey() { - return functionNames == null ? name : functionNames.getFirst(); + return functionNames == null || functionNames.isEmpty() ? name : functionNames.getFirst(); } public JsonObject toJson(RecipeSchemaType type, DynamicOps ops) {