diff --git a/src/main/java/dev/latvian/mods/kubejs/recipe/component/RecipeComponent.java b/src/main/java/dev/latvian/mods/kubejs/recipe/component/RecipeComponent.java index ef4b4c5fd..bea4e02d3 100644 --- a/src/main/java/dev/latvian/mods/kubejs/recipe/component/RecipeComponent.java +++ b/src/main/java/dev/latvian/mods/kubejs/recipe/component/RecipeComponent.java @@ -35,8 +35,6 @@ */ @Nullable public interface RecipeComponent { - Codec> CODEC = Codec.unit(null); // FIXME!!! - static RecipeComponentBuilder builder() { return new RecipeComponentBuilder(4); } diff --git a/src/main/java/dev/latvian/mods/kubejs/recipe/schema/RecipeSchemaStorage.java b/src/main/java/dev/latvian/mods/kubejs/recipe/schema/RecipeSchemaStorage.java index fc4e0c1e7..e4ca28da5 100644 --- a/src/main/java/dev/latvian/mods/kubejs/recipe/schema/RecipeSchemaStorage.java +++ b/src/main/java/dev/latvian/mods/kubejs/recipe/schema/RecipeSchemaStorage.java @@ -130,6 +130,12 @@ public RecipeComponent getComponent(String string) { public RecipeComponent readComponent(StringReader reader) throws Exception { reader.skipWhitespace(); var key = reader.readUnquotedString(); + + if (reader.canRead() && reader.peek() == ':') { + reader.skip(); + key += ":" + reader.readUnquotedString(); + } + RecipeComponent component = simpleComponents.get(key); if (component == null) {