Mekanism

Mekanism

111M Downloads

[Dependencie Mod Bug] Bug when removing recipe

Slater022 opened this issue ยท 2 comments

commented

It work when i launch the client but I can't remove existing recipes like this one :

public void init(FMLInitializationEvent event) {
        RecipeHandler.Recipe.METALLURGIC_INFUSER.get().clear();
        //Recipe in Mekanism.java --> 
       // RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("REDSTONE"), 10, new ItemStack(Items.IRON_INGOT), new ItemStack(MekanismItems.EnrichedAlloy));
        this.removeMetallurgicInfuserRecipe(InfuseRegistry.get("REDSTONE"), 10, new ItemStack(Items.IRON_INGOT), new ItemStack(MekanismItems.EnrichedAlloy));
        //workink added recipes
        RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 50, new ItemStack(MekanismItems.EnrichedAlloy), new ItemStack(MekanismItems.ControlCircuit, 1, 0));
    }

    public void removeMetallurgicInfuserRecipe(InfuseType infuse, int amount, ItemStack input, ItemStack output) {
        RecipeHandler.removeRecipe(RecipeHandler.Recipe.METALLURGIC_INFUSER, new MetallurgicInfuserRecipe(new InfusionInput(infuse, amount, input), output));
    }

PS: Added recipe is working well

Screens :
https://snag.gy/kOtodJ.jpg
https://snag.gy/jqPs6u.jpg

commented

Ah, oversight on my end. Fixed!

commented

Fixed ? any ddl ? ^^' is it possible for you to cook a 1.10.2 dev version for me ? ^^'