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 bde44d3 commit ee66211
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 36 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.2.0] - 2024-10-27
### Fixed
- fixed JEI loading errors since 15.20.0.100

## [1.20.1-2.1.1.3] - 2024-03-31
### Fixed
- fuel consumption of Brick Smoker & Brick Blast Furnace were incorrect (thanks to t3chdelicious for the report)
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ loader_version_range=[47,)

## Mod Properties
mod_id=brickfurnace
mod_version=2.1.1.3
mod_version=2.1.2.0
mod_group_id=cech12.brickfurnace
mod_name=Brick Furnace
mod_authors=Cech12
Expand All @@ -22,8 +22,8 @@ mod_issue_tracker=https://github.com/cech12/BrickFurnace/issues
mod_description=A mod which adds Brick Furnaces.

# 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.0-9.0.0-1
Expand Down
15 changes: 4 additions & 11 deletions src/main/java/cech12/brickfurnace/jei/BrickBlastingCategory.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
package cech12.brickfurnace.jei;

import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
import cech12.brickfurnace.crafting.BrickBlastingRecipe;
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import mezz.jei.api.helpers.IGuiHelper;
import mezz.jei.api.recipe.RecipeType;
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory;

import javax.annotation.Nonnull;

public class BrickBlastingCategory extends AbstractCookingCategory<BrickBlastingRecipe> {

public BrickBlastingCategory(IGuiHelper guiHelper) {
super(guiHelper, ModBlocks.BRICK_BLAST_FURNACE.get(), "gui.jei.category.blasting", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
@Nonnull
public RecipeType<BrickBlastingRecipe> getRecipeType() {
return new RecipeType<>(ModRecipeTypes.BLASTING.getId(), BrickBlastingRecipe.class);
super(guiHelper, new RecipeType<>(ModRecipeTypes.BLASTING.getId(), BrickBlastingRecipe.class),
ModBlocks.BRICK_BLAST_FURNACE.get(), "gui.jei.category.blasting", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get()));
}

}
15 changes: 4 additions & 11 deletions src/main/java/cech12/brickfurnace/jei/BrickSmeltingCategory.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
package cech12.brickfurnace.jei;

import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
import cech12.brickfurnace.crafting.BrickSmeltingRecipe;
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import mezz.jei.api.helpers.IGuiHelper;
import mezz.jei.api.recipe.RecipeType;
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory;

import javax.annotation.Nonnull;

public class BrickSmeltingCategory extends AbstractCookingCategory<BrickSmeltingRecipe> {

public BrickSmeltingCategory(IGuiHelper guiHelper) {
super(guiHelper, ModBlocks.BRICK_FURNACE.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
@Nonnull
public RecipeType<BrickSmeltingRecipe> getRecipeType() {
return new RecipeType<>(ModRecipeTypes.SMELTING.getId(), BrickSmeltingRecipe.class);
super(guiHelper, new RecipeType<>(ModRecipeTypes.SMELTING.getId(), BrickSmeltingRecipe.class),
ModBlocks.BRICK_FURNACE.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get()));
}

}
15 changes: 4 additions & 11 deletions src/main/java/cech12/brickfurnace/jei/BrickSmokingCategory.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
package cech12.brickfurnace.jei;

import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
import cech12.brickfurnace.crafting.BrickSmokingRecipe;
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import mezz.jei.api.helpers.IGuiHelper;
import mezz.jei.api.recipe.RecipeType;
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory;

import javax.annotation.Nonnull;

public class BrickSmokingCategory extends AbstractCookingCategory<BrickSmokingRecipe> {

public BrickSmokingCategory(IGuiHelper guiHelper) {
super(guiHelper, ModBlocks.BRICK_SMOKER.get(), "gui.jei.category.smoking", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
@Nonnull
public RecipeType<BrickSmokingRecipe> getRecipeType() {
return new RecipeType<>(ModRecipeTypes.SMOKING.getId(), BrickSmokingRecipe.class);
super(guiHelper, new RecipeType<>(ModRecipeTypes.SMOKING.getId(), BrickSmokingRecipe.class),
ModBlocks.BRICK_SMOKER.get(), "gui.jei.category.smoking", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get()));
}

}

0 comments on commit ee66211

Please sign in to comment.