Limit smelting XP the same way vanilla does

This commit is contained in:
HenryLoenwind committed 2015-12-14 06:07:12 +01:00
1 parent b38c51a291
commit 2dbfb160ba
1 file changed
+4
@@ -124,6 +124,10 @@ public class VanillaSmeltingRecipe implements IMachineRecipe {
return 0;
}
float result = FurnaceRecipes.smelting().func_151398_b(output);
if (result > 1.0f) {
// see net.minecraft.inventory.SlotFurnace.onCrafting(ItemStack)
result = 1.0f;
}
return result * output.stackSize;
}