Add missing removeRecipe patch (#477)
This commit is contained in:
parent
d11631c656
commit
5061aa5b6c
|
@ -129,6 +129,13 @@ public abstract class RecipeManagerMixin implements RecipeManagerBridge {
|
||||||
addRecipe(recipe);
|
addRecipe(recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeRecipe(ResourceLocation mcKey) {
|
||||||
|
for (var recipes : recipes.values()) {
|
||||||
|
recipes.remove(mcKey);
|
||||||
|
}
|
||||||
|
return byName.remove(mcKey) != null;
|
||||||
|
}
|
||||||
|
|
||||||
public void clearRecipes() {
|
public void clearRecipes() {
|
||||||
this.recipes = new HashMap<>();
|
this.recipes = new HashMap<>();
|
||||||
for (RecipeType<?> type : Registry.RECIPE_TYPE) {
|
for (RecipeType<?> type : Registry.RECIPE_TYPE) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user