Revert "Fixes #219 Potentialy breaking for MT scripts."

This reverts commit f326dbfec9.
This commit is contained in:
Modmuss50 2015-11-13 08:27:02 +00:00
parent a7001bbfd7
commit de1d036b33
10 changed files with 22 additions and 44 deletions

View file

@ -72,10 +72,8 @@ public class MTAlloySmelter {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -67,10 +67,8 @@ public class MTAssemblingMachine {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -66,10 +66,8 @@ public class MTBlastFurnace {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -66,17 +66,13 @@ public class MTCentrifuge {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
@ZenMethod
public static void removeInputRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new RemoveInput(MinetweakerCompat.toStack(itemStack)));
}
public static void removeInputRecipe(IItemStack output) {
MineTweakerAPI.apply(new RemoveInput(MinetweakerCompat.toStack(output)));
}
private static class RemoveInput implements IUndoableAction {

View file

@ -66,10 +66,8 @@ public class MTChemicalReactor {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -79,10 +79,8 @@ public class MTGrinder {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -67,10 +67,8 @@ public class MTImplosionCompressor {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -66,10 +66,8 @@ public class MTIndustrialElectrolyzer {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -90,10 +90,8 @@ public class MTIndustrialSawmill {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {

View file

@ -65,10 +65,8 @@ public class MTPlateCuttingMachine {
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
for(IItemStack itemStack : output.getItems()){
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
}
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
}
private static class Remove implements IUndoableAction {