Small fix to reactor MT support
This commit is contained in:
parent
9283e46a1f
commit
5e079afd05
1 changed files with 5 additions and 7 deletions
|
@ -73,18 +73,16 @@ public class MTFusionReactor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IItemStack output, String machineName) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output), machineName));
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
private final ItemStack output;
|
private final ItemStack output;
|
||||||
List<FusionReactorRecipe> removedRecipes = new ArrayList<FusionReactorRecipe>();
|
List<FusionReactorRecipe> removedRecipes = new ArrayList<FusionReactorRecipe>();
|
||||||
private final String name;
|
|
||||||
|
|
||||||
public Remove(ItemStack output, String machineName) {
|
public Remove(ItemStack output) {
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.name = machineName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -113,12 +111,12 @@ public class MTFusionReactor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String describe() {
|
public String describe() {
|
||||||
return "Removing " + name + " recipe for " + output.getDisplayName();
|
return "Removing Fusion Reactor recipe for " + output.getDisplayName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String describeUndo() {
|
public String describeUndo() {
|
||||||
return "Re-Adding " + name +" recipe for " + output.getDisplayName();
|
return "Re-Adding Fusion Reactor recipe for " + output.getDisplayName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue