ModTweaker

ModTweaker

88M Downloads

[Request] Update Crafting Handler of Forestry Machines

Yulife opened this issue ยท 3 comments

commented

For @jaredlll08
@mezz changed some stuff with the Carpenter regarding the box slot. Now a custom recipe will not work.
No error is thrown.

Script

commented

looked at the code, no idea regarding what was changed...

commented

The box slot has changed so that it will only accept valid boxes. The recipe manager keeps a list of these boxes, and it adds them in the main addRecipe method:

@Override
public void addRecipe(int packagingTime, FluidStack liquid, ItemStack box, ItemStack product, Object materials[]) {
    recipes.add(new Recipe(packagingTime, liquid, box, ShapedRecipeCustom.createShapedRecipe(product, materials)));
    if (liquid != null) {
        recipeFluids.add(liquid.getFluid());
    }
    if (box != null && !isBox(box)) {
        boxes.add(box);
    }
}

I'm not sure how you guys do things but I'll help if I can.

commented

Thanks!!! =]