From a7001bbfd7c1213c31c9da81a83d56d846ba3948 Mon Sep 17 00:00:00 2001 From: Modmuss50 Date: Fri, 13 Nov 2015 08:26:51 +0000 Subject: [PATCH] Revert "fixes #219 again" This reverts commit d562e1222a63c49ece5768408915eea07dea7645. --- .../compat/minetweaker/MTAlloySmelter.java | 15 ++++++----- .../minetweaker/MTAssemblingMachine.java | 15 ++++++----- .../compat/minetweaker/MTBlastFurnace.java | 15 ++++++----- .../compat/minetweaker/MTCentrifuge.java | 27 ++++++++++--------- .../compat/minetweaker/MTChemicalReactor.java | 15 ++++++----- .../compat/minetweaker/MTGrinder.java | 15 ++++++----- .../minetweaker/MTImplosionCompressor.java | 15 ++++++----- .../minetweaker/MTIndustrialElectrolyzer.java | 15 ++++++----- .../minetweaker/MTIndustrialSawmill.java | 15 ++++++----- .../minetweaker/MTPlateCuttingMachine.java | 15 ++++++----- 10 files changed, 86 insertions(+), 76 deletions(-) diff --git a/src/main/java/techreborn/compat/minetweaker/MTAlloySmelter.java b/src/main/java/techreborn/compat/minetweaker/MTAlloySmelter.java index 65ab6435a..368dc4f6e 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTAlloySmelter.java +++ b/src/main/java/techreborn/compat/minetweaker/MTAlloySmelter.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -74,14 +73,16 @@ public class MTAlloySmelter { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -89,7 +90,7 @@ public class MTAlloySmelter { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelteRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if(output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((AlloySmelterRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -112,12 +113,12 @@ public class MTAlloySmelter { @Override public String describe() { - return "Removing Alloy Smelter Recipe"; + return "Removing Alloy Smelter Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Alloy Smelter Recipe for "; + return "Re-Adding Alloy Smelter Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTAssemblingMachine.java b/src/main/java/techreborn/compat/minetweaker/MTAssemblingMachine.java index 257ad85cb..cd5238dd0 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTAssemblingMachine.java +++ b/src/main/java/techreborn/compat/minetweaker/MTAssemblingMachine.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -69,14 +68,16 @@ public class MTAssemblingMachine { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -84,7 +85,7 @@ public class MTAssemblingMachine { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.assemblingMachineRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((AssemblingMachineRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -107,12 +108,12 @@ public class MTAssemblingMachine { @Override public String describe() { - return "Removing Assembling Machine Recipe"; + return "Removing Assembling Machine Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Assembling Machine Recipe"; + return "Re-Adding Assembling Machine Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTBlastFurnace.java b/src/main/java/techreborn/compat/minetweaker/MTBlastFurnace.java index d1dee140d..8fb687c95 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTBlastFurnace.java +++ b/src/main/java/techreborn/compat/minetweaker/MTBlastFurnace.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -68,14 +67,16 @@ public class MTBlastFurnace { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -83,7 +84,7 @@ public class MTBlastFurnace { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.blastFurnaceRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((BlastFurnaceRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -106,12 +107,12 @@ public class MTBlastFurnace { @Override public String describe() { - return "Removing Blast Furnace Recipe"; + return "Removing Blast Furnace Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Blast Furnace Recipe"; + return "Re-Adding Blast Furnace Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTCentrifuge.java b/src/main/java/techreborn/compat/minetweaker/MTCentrifuge.java index f699c7614..b5c2143db 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTCentrifuge.java +++ b/src/main/java/techreborn/compat/minetweaker/MTCentrifuge.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -68,21 +67,23 @@ public class MTCentrifuge { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } @ZenMethod public static void removeInputRecipe(IIngredient output) { for(IItemStack itemStack : output.getItems()){ - MineTweakerAPI.apply(new RemoveInput(output)); + MineTweakerAPI.apply(new RemoveInput(MinetweakerCompat.toStack(itemStack))); } } private static class RemoveInput implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public RemoveInput(IIngredient output) { + public RemoveInput(ItemStack output) { this.output = output; } @@ -90,7 +91,7 @@ public class MTCentrifuge { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.centrifugeRecipe)) { for (ItemStack stack : recipeType.getInputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((CentrifugeRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -113,12 +114,12 @@ public class MTCentrifuge { @Override public String describe() { - return "Removing Centrifuge Recipe for"; + return "Removing Centrifuge Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Centrifuge Recipe"; + return "Re-Adding Centrifuge Recipe for " + output.getDisplayName(); } @Override @@ -133,10 +134,10 @@ public class MTCentrifuge { } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -144,7 +145,7 @@ public class MTCentrifuge { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.centrifugeRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((CentrifugeRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -167,12 +168,12 @@ public class MTCentrifuge { @Override public String describe() { - return "Removing Centrifuge Recipe for "; + return "Removing Centrifuge Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Centrifuge Recipe for "; + return "Re-Adding Centrifuge Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTChemicalReactor.java b/src/main/java/techreborn/compat/minetweaker/MTChemicalReactor.java index c7473eea3..3396be474 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTChemicalReactor.java +++ b/src/main/java/techreborn/compat/minetweaker/MTChemicalReactor.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -68,14 +67,16 @@ public class MTChemicalReactor { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -83,7 +84,7 @@ public class MTChemicalReactor { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.chemicalReactorRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((ChemicalReactorRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -106,12 +107,12 @@ public class MTChemicalReactor { @Override public String describe() { - return "Removing Chemical Recipe"; + return "Removing Chemical Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Chemical Recipe"; + return "Re-Adding Chemical Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTGrinder.java b/src/main/java/techreborn/compat/minetweaker/MTGrinder.java index 879f3ff39..6220b73b5 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTGrinder.java +++ b/src/main/java/techreborn/compat/minetweaker/MTGrinder.java @@ -5,7 +5,6 @@ import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; import minetweaker.api.liquid.ILiquidStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; import stanhebben.zenscript.annotations.ZenClass; @@ -81,14 +80,16 @@ public class MTGrinder { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -96,7 +97,7 @@ public class MTGrinder { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.grinderRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((GrinderRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -119,12 +120,12 @@ public class MTGrinder { @Override public String describe() { - return "Removing Grinder Recipe"; + return "Removing Grinder Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Grinder Recipe"; + return "Re-Adding Grinder Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTImplosionCompressor.java b/src/main/java/techreborn/compat/minetweaker/MTImplosionCompressor.java index f20a4e1f1..f47c153a7 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTImplosionCompressor.java +++ b/src/main/java/techreborn/compat/minetweaker/MTImplosionCompressor.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -69,14 +68,16 @@ public class MTImplosionCompressor { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -84,7 +85,7 @@ public class MTImplosionCompressor { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.implosionCompressorRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((ImplosionCompressorRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -107,12 +108,12 @@ public class MTImplosionCompressor { @Override public String describe() { - return "Removing Implosion Recipe"; + return "Removing Implosion Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Implosion Recipe"; + return "Re-Adding Implosion Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTIndustrialElectrolyzer.java b/src/main/java/techreborn/compat/minetweaker/MTIndustrialElectrolyzer.java index a3c474d36..59196d72f 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTIndustrialElectrolyzer.java +++ b/src/main/java/techreborn/compat/minetweaker/MTIndustrialElectrolyzer.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -68,14 +67,16 @@ public class MTIndustrialElectrolyzer { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -83,7 +84,7 @@ public class MTIndustrialElectrolyzer { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.industrialElectrolyzerRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((IndustrialElectrolyzerRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -106,12 +107,12 @@ public class MTIndustrialElectrolyzer { @Override public String describe() { - return "Removing IndustrialElectrolyzerRecipe"; + return "Removing IndustrialElectrolyzerRecipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding IndustrialElectrolyzerRecipe"; + return "Re-Adding IndustrialElectrolyzerRecipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTIndustrialSawmill.java b/src/main/java/techreborn/compat/minetweaker/MTIndustrialSawmill.java index 3c4719bbd..67722eeb9 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTIndustrialSawmill.java +++ b/src/main/java/techreborn/compat/minetweaker/MTIndustrialSawmill.java @@ -5,7 +5,6 @@ import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; import minetweaker.api.liquid.ILiquidStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; import stanhebben.zenscript.annotations.ZenClass; @@ -92,14 +91,16 @@ public class MTIndustrialSawmill { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -107,7 +108,7 @@ public class MTIndustrialSawmill { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.industrialSawmillRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((IndustrialSawmillRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -130,12 +131,12 @@ public class MTIndustrialSawmill { @Override public String describe() { - return "Removing Sawmill Recipe"; + return "Removing Sawmill Recipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding Sawmill Recipe"; + return "Re-Adding Sawmill Recipe for " + output.getDisplayName(); } @Override diff --git a/src/main/java/techreborn/compat/minetweaker/MTPlateCuttingMachine.java b/src/main/java/techreborn/compat/minetweaker/MTPlateCuttingMachine.java index 5ac6eecbd..85817bfdb 100644 --- a/src/main/java/techreborn/compat/minetweaker/MTPlateCuttingMachine.java +++ b/src/main/java/techreborn/compat/minetweaker/MTPlateCuttingMachine.java @@ -4,7 +4,6 @@ import minetweaker.IUndoableAction; import minetweaker.MineTweakerAPI; import minetweaker.api.item.IIngredient; import minetweaker.api.item.IItemStack; -import minetweaker.api.minecraft.MineTweakerMC; import net.minecraft.item.ItemStack; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; @@ -67,14 +66,16 @@ public class MTPlateCuttingMachine { @ZenMethod public static void removeRecipe(IIngredient output) { - MineTweakerAPI.apply(new Remove(output)); + for(IItemStack itemStack : output.getItems()){ + MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack))); + } } private static class Remove implements IUndoableAction { - private final IIngredient output; + private final ItemStack output; List removedRecipes = new ArrayList(); - public Remove(IIngredient output) { + public Remove(ItemStack output) { this.output = output; } @@ -82,7 +83,7 @@ public class MTPlateCuttingMachine { public void apply() { for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.plateCuttingMachineRecipe)) { for (ItemStack stack : recipeType.getOutputs()) { - if (output.matches(MineTweakerMC.getIItemStack(stack))) { + if (ItemUtils.isItemEqual(stack, output, true, false)) { removedRecipes.add((PlateCuttingMachineRecipe) recipeType); RecipeHandler.recipeList.remove(recipeType); break; @@ -105,12 +106,12 @@ public class MTPlateCuttingMachine { @Override public String describe() { - return "Removing PlateCuttingMachineRecipe"; + return "Removing PlateCuttingMachineRecipe for " + output.getDisplayName(); } @Override public String describeUndo() { - return "Re-Adding PlateCuttingMachineRecipe"; + return "Re-Adding PlateCuttingMachineRecipe for " + output.getDisplayName(); } @Override