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"
|
name = "Amadornes"
|
||||||
url "http://maven.amadornes.com/"
|
url "http://maven.amadornes.com/"
|
||||||
}
|
}
|
||||||
ivy {
|
maven {
|
||||||
name "CraftTweaker3"
|
name "Minetweaker"
|
||||||
artifactPattern "http://www.blamejared.com/content/[module]-[classifier]-Full-[revision].[ext]"
|
url "http://blamejared.com/maven"
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
url 'http://maven.epoxide.xyz'
|
url 'http://maven.epoxide.xyz'
|
||||||
}
|
}
|
||||||
|
@ -101,6 +101,7 @@ dependencies {
|
||||||
deobfCompile "slimeknights.mantle:Mantle:1.10.2-1.0.0.jenkins170"
|
deobfCompile "slimeknights.mantle:Mantle:1.10.2-1.0.0.jenkins170"
|
||||||
deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14"
|
deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14"
|
||||||
deobfCompile 'net.industrial-craft:industrialcraft-2:2.6.129-ex110'
|
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
|
@Override
|
||||||
public void apply() {
|
public void apply() {
|
||||||
RecipeHandler.addRecipe(recipe);
|
RecipeHandler.addRecipe(recipe);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -42,6 +43,7 @@ public class MTGeneric {
|
||||||
@Override
|
@Override
|
||||||
public void undo() {
|
public void undo() {
|
||||||
RecipeHandler.recipeList.remove(recipe);
|
RecipeHandler.recipeList.remove(recipe);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -77,6 +79,7 @@ public class MTGeneric {
|
||||||
if (ItemUtils.isItemEqual(stack, output, true, false)) {
|
if (ItemUtils.isItemEqual(stack, output, true, false)) {
|
||||||
removedRecipes.add((BaseRecipe) recipeType);
|
removedRecipes.add((BaseRecipe) recipeType);
|
||||||
RecipeHandler.recipeList.remove(recipeType);
|
RecipeHandler.recipeList.remove(recipeType);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipeType);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,6 +92,7 @@ public class MTGeneric {
|
||||||
for (BaseRecipe recipe : removedRecipes) {
|
for (BaseRecipe recipe : removedRecipes) {
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
RecipeHandler.addRecipe(recipe);
|
RecipeHandler.addRecipe(recipe);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -133,6 +137,7 @@ public class MTGeneric {
|
||||||
if (output.matches(MineTweakerMC.getIItemStack(stack))) {
|
if (output.matches(MineTweakerMC.getIItemStack(stack))) {
|
||||||
removedRecipes.add((BaseRecipe) recipeType);
|
removedRecipes.add((BaseRecipe) recipeType);
|
||||||
RecipeHandler.recipeList.remove(recipeType);
|
RecipeHandler.recipeList.remove(recipeType);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipeType);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,6 +150,7 @@ public class MTGeneric {
|
||||||
for (BaseRecipe recipe : removedRecipes) {
|
for (BaseRecipe recipe : removedRecipes) {
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
RecipeHandler.addRecipe(recipe);
|
RecipeHandler.addRecipe(recipe);
|
||||||
|
MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue