From 9a0eb2935bf2439d13c5b7a0fb5a507233e96ab0 Mon Sep 17 00:00:00 2001 From: cech12 Date: Sun, 27 Oct 2024 12:00:38 +0100 Subject: [PATCH] fixed JEI loading errors since 15.20.0.100 --- CHANGELOG.md | 4 ++++ gradle.properties | 6 +++--- .../cech12/solarcooker/jei/SolarCookingCategory.java | 11 ++--------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1eefda7..36756a7 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.20.1-2.1.1.0] - 2024-10-27 +### Fixed +- fixed JEI loading errors since 15.20.0.100 + ## [1.20.1-2.1.0.0] - 2023-08-09 ### Changed - Changed Forge to NeoForge 1.20.1-47.1.54 (compatible with Forge 47.1.0) diff --git a/gradle.properties b/gradle.properties index 999a805..7906b91 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ forge_version_range=[47.1.0,) loader_version_range=[47,) mod_id=solarcooker -mod_version=2.1.0.0 +mod_version=2.1.1.0 mod_group_id=cech12.solarcooker mod_name=Solar Cooker mod_authors=Cech12 @@ -21,8 +21,8 @@ mod_issue_tracker=https://github.com/cech12/SolarCooker/issues mod_description=A mod which adds a Solar Cooker. # jei -jei_version=15.2.0.23 -jei_version_range=[15.2.0.23,) +jei_version=15.20.0.100 +jei_version_range=[15.20.0.100,) #the one probe top_version=1.20.1-10.0.1-3 diff --git a/src/main/java/cech12/solarcooker/jei/SolarCookingCategory.java b/src/main/java/cech12/solarcooker/jei/SolarCookingCategory.java index da9a4cb..588451c 100644 --- a/src/main/java/cech12/solarcooker/jei/SolarCookingCategory.java +++ b/src/main/java/cech12/solarcooker/jei/SolarCookingCategory.java @@ -8,18 +8,11 @@ import mezz.jei.api.recipe.RecipeType; import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory; -import javax.annotation.Nonnull; - public class SolarCookingCategory extends AbstractCookingCategory { public SolarCookingCategory(IGuiHelper guiHelper) { - super(guiHelper, ModBlocks.SOLAR_COOKER.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get())); - } - - @Override - @Nonnull - public RecipeType getRecipeType() { - return new RecipeType<>(ModRecipeTypes.SOLAR_COOKING.getId(), SolarCookingRecipe.class); + super(guiHelper, new RecipeType<>(ModRecipeTypes.SOLAR_COOKING.getId(), SolarCookingRecipe.class), + ModBlocks.SOLAR_COOKER.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get())); } }