WIP changes for updates MineTweaker
This commit is contained in:
parent
74b9b03dd3
commit
345a319d98
3 changed files with 11 additions and 4 deletions
|
@ -40,10 +40,10 @@ repositories {
|
|||
name = "Amadornes"
|
||||
url "http://maven.amadornes.com/"
|
||||
}
|
||||
ivy {
|
||||
name "CraftTweaker3"
|
||||
artifactPattern "http://www.blamejared.com/content/[module]-[classifier]-Full-[revision].[ext]"
|
||||
}
|
||||
maven {
|
||||
name "Minetweaker"
|
||||
url "http://blamejared.com/maven"
|
||||
}
|
||||
maven {
|
||||
url 'http://maven.epoxide.xyz'
|
||||
}
|
||||
|
@ -101,6 +101,7 @@ dependencies {
|
|||
deobfCompile "slimeknights.mantle:Mantle:1.10.2-1.0.0.jenkins170"
|
||||
deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14"
|
||||
deobfCompile 'net.industrial-craft:industrialcraft-2:2.6.129-ex110'
|
||||
deobfCompile "MineTweaker3:MineTweaker3-MC1102-Main:+"
|
||||
}
|
||||
|
||||
|
||||
|
|
Binary file not shown.
|
@ -32,6 +32,7 @@ public class MTGeneric {
|
|||
@Override
|
||||
public void apply() {
|
||||
RecipeHandler.addRecipe(recipe);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -42,6 +43,7 @@ public class MTGeneric {
|
|||
@Override
|
||||
public void undo() {
|
||||
RecipeHandler.recipeList.remove(recipe);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipe);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -77,6 +79,7 @@ public class MTGeneric {
|
|||
if (ItemUtils.isItemEqual(stack, output, true, false)) {
|
||||
removedRecipes.add((BaseRecipe) recipeType);
|
||||
RecipeHandler.recipeList.remove(recipeType);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipeType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -89,6 +92,7 @@ public class MTGeneric {
|
|||
for (BaseRecipe recipe : removedRecipes) {
|
||||
if (recipe != null) {
|
||||
RecipeHandler.addRecipe(recipe);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -133,6 +137,7 @@ public class MTGeneric {
|
|||
if (output.matches(MineTweakerMC.getIItemStack(stack))) {
|
||||
removedRecipes.add((BaseRecipe) recipeType);
|
||||
RecipeHandler.recipeList.remove(recipeType);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipeType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -145,6 +150,7 @@ public class MTGeneric {
|
|||
for (BaseRecipe recipe : removedRecipes) {
|
||||
if (recipe != null) {
|
||||
RecipeHandler.addRecipe(recipe);
|
||||
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue