From 57b0cc6606604f1efd9fb0db06b3b828f13e098a Mon Sep 17 00:00:00 2001 From: cech12 Date: Mon, 8 Jul 2024 16:54:00 +0200 Subject: [PATCH] removed unknown recipe warning from log (all loaders) --- CHANGELOG.md | 4 ++++ .../cech12/solarcooker/crafting/SolarCookingRecipe.java | 8 ++++++-- gradle.properties | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6747db7..23ff22c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/). +## [1.21-4.0.0.1] - 2024-07-08 +### Fixed +- removed unknown recipe warning from log (all loaders) + ## [1.21-4.0.0.0] - 2024-07-07 ### Changed - updated to Minecraft 1.21 (Fabric 0.100.3+1.21, Neoforge 21.0.42-beta, Forge 51.0.18) diff --git a/common/src/main/java/de/cech12/solarcooker/crafting/SolarCookingRecipe.java b/common/src/main/java/de/cech12/solarcooker/crafting/SolarCookingRecipe.java index 40d9e0a..0a6fe29 100644 --- a/common/src/main/java/de/cech12/solarcooker/crafting/SolarCookingRecipe.java +++ b/common/src/main/java/de/cech12/solarcooker/crafting/SolarCookingRecipe.java @@ -6,9 +6,9 @@ import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.AbstractCookingRecipe; import net.minecraft.world.item.crafting.CookingBookCategory; -import net.minecraft.world.item.crafting.SimpleCookingSerializer; -import net.minecraft.world.item.crafting.RecipeSerializer; import net.minecraft.world.item.crafting.Ingredient; +import net.minecraft.world.item.crafting.RecipeSerializer; +import net.minecraft.world.item.crafting.SimpleCookingSerializer; import javax.annotation.Nonnull; @@ -36,4 +36,8 @@ public RecipeSerializer getSerializer() { return SERIALIZER; } + @Override + public boolean isSpecial() { + return true; + } } diff --git a/gradle.properties b/gradle.properties index b14ba9d..7655d47 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ # Project group=de.cech12.solarcooker -mod_version=4.0.0.0 +mod_version=4.0.0.1 mod_id=solarcooker mod_name=Solar Cooker mod_author=Cech12