Fixes #219 Potentialy breaking for MT scripts.

This commit is contained in:
Modmuss50 2015-11-11 08:21:21 +00:00
parent a8bcb76db6
commit f326dbfec9
10 changed files with 44 additions and 22 deletions

View file

@ -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 {