Fixes #219 Potentialy breaking for MT scripts.
This commit is contained in:
parent
a8bcb76db6
commit
f326dbfec9
10 changed files with 44 additions and 22 deletions
|
@ -73,8 +73,10 @@ public class MTAlloySmelter {
|
|||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeRecipe(IItemStack output) {
|
||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||
public static void removeRecipe(IIngredient output) {
|
||||
for(IItemStack itemStack : output.getItems()){
|
||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
||||
}
|
||||
}
|
||||
|
||||
private static class Remove implements IUndoableAction {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue