Skip to content

Commit

Permalink
Fix Recycling Recipes Missing
Browse files Browse the repository at this point in the history
Remove Recipe Map Mixin, Revert to Previous Behaviour
  • Loading branch information
IntegerLimit committed Jan 26, 2024
1 parent 7f13565 commit 5e56538
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 39 deletions.

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/java/com/nomiceu/nomilabs/groovy/ReplaceRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.cleanroommc.groovyscript.helper.ingredient.OreDictIngredient;
import com.cleanroommc.groovyscript.registry.ReloadableRegistryManager;
import com.google.common.collect.ImmutableList;
import com.nomiceu.nomilabs.gregtech.RecipeMapAccessor;
import com.nomiceu.nomilabs.util.ItemTagMeta;
import com.nomiceu.nomilabs.util.LabsNames;
import gregtech.api.recipes.RecipeMap;
Expand Down Expand Up @@ -45,10 +44,6 @@ public static void reloadRecyclingRecipes() {
}

private static void removeRecipesInCategory(RecipeMap<?> recipeMap, GTRecipeCategory category) {
if (recipeMap instanceof RecipeMapAccessor accessor) {
accessor.removeAllRecipesInCategory(category);
return;
}
if (!recipeMap.getRecipesByCategory().containsKey(category)) return;
var recipes = new ArrayList<>(recipeMap.getRecipesByCategory().get(category));
if (recipes.isEmpty()) return;
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/resources/mixins.nomilabs.gregtech.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"compatibilityLevel": "JAVA_8",
"mixins": [
"FluidStorageKeyMixin",
"MetaItemsMixin",
"RecipeMapMixin"
"MetaItemsMixin"
],
"client": [],
"server": []
Expand Down

0 comments on commit 5e56538

Please sign in to comment.