Fix NEI Plugin to work with new Recipe Setup.
Added Config option to not show colored cables in recipes. Fortify Recipe System vs OreDicionary Late entries.
This commit is contained in:
@@ -114,6 +114,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||
public int colorapplicator_battery = 20000;
|
||||
public int staff_battery = 8000;
|
||||
|
||||
public boolean disableColoredCableRecipesInNEI = true;
|
||||
|
||||
public boolean updateable = false;
|
||||
final private File myPath;
|
||||
|
||||
@@ -128,6 +130,7 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||
|
||||
private void clientSync()
|
||||
{
|
||||
disableColoredCableRecipesInNEI = get( "Client", "disableColoredCableRecipesInNEI", true ).getBoolean( true );
|
||||
enableEffects = get( "Client", "enableEffects", true ).getBoolean( true );
|
||||
useLargeFonts = get( "Client", "useTerminalUseLargeFont", false ).getBoolean( false );
|
||||
|
||||
@@ -152,6 +155,11 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||
|
||||
}
|
||||
|
||||
public boolean disableColoredCableRecipesInNEI()
|
||||
{
|
||||
return disableColoredCableRecipesInNEI;
|
||||
}
|
||||
|
||||
public String getFilePath()
|
||||
{
|
||||
return myPath.toString();
|
||||
|
||||
+4
-21
@@ -140,7 +140,6 @@ import appeng.parts.PartPlacement;
|
||||
import appeng.recipes.AEItemResolver;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.recipes.game.FacadeRecipe;
|
||||
import appeng.recipes.game.IRecipeBakeable;
|
||||
import appeng.recipes.game.ShapedRecipe;
|
||||
import appeng.recipes.game.ShapelessRecipe;
|
||||
import appeng.recipes.handlers.Crusher;
|
||||
@@ -195,7 +194,6 @@ public class Registration
|
||||
IRecipeHandlerRegistry recipeRegistery = AEApi.instance().registries().recipes();
|
||||
recipeRegistery.addNewSubItemResolver( new AEItemResolver() );
|
||||
|
||||
|
||||
recipeRegistery.addNewCraftHandler( "hccrusher", HCCrusher.class );
|
||||
recipeRegistery.addNewCraftHandler( "mekcrusher", MekCrusher.class );
|
||||
recipeRegistery.addNewCraftHandler( "mekechamber", MekEnrichment.class );
|
||||
@@ -693,26 +691,11 @@ public class Registration
|
||||
* Whitelist AE2
|
||||
*/
|
||||
mr.whiteListTileEntity( AEBaseTile.class );
|
||||
|
||||
bakeRecipes();
|
||||
}
|
||||
|
||||
private void bakeRecipes()
|
||||
{
|
||||
for ( Object o : CraftingManager.getInstance().getRecipeList() )
|
||||
{
|
||||
if ( o instanceof IRecipeBakeable )
|
||||
{
|
||||
try
|
||||
{
|
||||
( (IRecipeBakeable) o ).bake();
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
AELog.error( e );
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* initial recipe bake, if ore dictionary changes after this it re-bakes.
|
||||
*/
|
||||
OreDictionaryHandler.instance.bakeRecipes();
|
||||
}
|
||||
|
||||
private void registerSpatial(boolean force)
|
||||
|
||||
Reference in New Issue
Block a user