Skip to content

Commit

Permalink
fixed JEI loading errors since 15.20.0.100
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Oct 27, 2024
1 parent 517fdba commit 9a0eb29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
11 changes: 2 additions & 9 deletions src/main/java/cech12/solarcooker/jei/SolarCookingCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<SolarCookingRecipe> {

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<SolarCookingRecipe> 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()));
}

}

0 comments on commit 9a0eb29

Please sign in to comment.