Advertisement
smbarbour

Patching NEI_Plugins for Forestry 2.0+

Feb 4th, 2013
1,892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. How to patch mistaqur's NEI_Plugins 1.0.4.5 to work with Forestry 2.0+
  2.  
  3. First, you will need a program to extract and replace files in an archive. I recommend 7-Zip (http://www.7-zip.org/).
  4. Second, you will need a Java class file editor (http://sourceforge.net/projects/classeditor/)
  5.  
  6. Extract the following files from the NEI_Plugins jar:
  7. mistaqur/nei/NEIPlugins_Forestry.class
  8. mistaqur/nei/forestry/CarpenterRecipeHandler.class
  9. mistaqur/nei/forestry/CarpenterRecipeHandler$CachedCarpenterRecipe.class
  10. mistaqur/nei/forestry/FabricatorRecipeHandler.class
  11. mistaqur/nei/forestry/FabricatorRecipeHandler$CachedFabricatorRecipe.class
  12. mistaqur/nei/forestry/ForestryRecipeHandler$CachedShapedRecipeInternal.class
  13.  
  14. Using the Java class file editor find and replace all instances of the following strings in the Constant Pool:
  15. in NEIPlugins_Forestry.class, replace "Forestry@(,1.8)" with "Forestry@(,2.1)"
  16. in the other five classes, replace "ShapedRecipeInternal" with "ShapedRecipeCustom" (but NOT "CachedShapedRecipeInternal")
  17.  
  18. Put the changed class files into their respective places in the NEI_Plugins jar.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement