Revert "Fixes #219 Potentialy breaking for MT scripts."
This reverts commit f326dbfec9
.
This commit is contained in:
parent
a7001bbfd7
commit
de1d036b33
10 changed files with 22 additions and 44 deletions
|
@ -72,10 +72,8 @@ public class MTAlloySmelter {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -67,10 +67,8 @@ public class MTAssemblingMachine {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -66,10 +66,8 @@ public class MTBlastFurnace {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -66,17 +66,13 @@ public class MTCentrifuge {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeInputRecipe(IIngredient output) {
|
public static void removeInputRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new RemoveInput(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new RemoveInput(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class RemoveInput implements IUndoableAction {
|
private static class RemoveInput implements IUndoableAction {
|
||||||
|
|
|
@ -66,10 +66,8 @@ public class MTChemicalReactor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -79,10 +79,8 @@ public class MTGrinder {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -67,10 +67,8 @@ public class MTImplosionCompressor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -66,10 +66,8 @@ public class MTIndustrialElectrolyzer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -90,10 +90,8 @@ public class MTIndustrialSawmill {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
|
@ -65,10 +65,8 @@ public class MTPlateCuttingMachine {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void removeRecipe(IIngredient output) {
|
public static void removeRecipe(IItemStack output) {
|
||||||
for(IItemStack itemStack : output.getItems()){
|
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(output)));
|
||||||
MineTweakerAPI.apply(new Remove(MinetweakerCompat.toStack(itemStack)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Remove implements IUndoableAction {
|
private static class Remove implements IUndoableAction {
|
||||||
|
|
Loading…
Add table
Reference in a new issue