Hide invalid recipes when de-dupe mode is on, closes #1078

(cherry picked from commit 7e593bc)
This commit is contained in:
modmuss50 2017-05-23 13:08:50 +01:00
parent 0a7e6ac92f
commit d863417e7b
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -189,10 +189,15 @@ public class TechRebornJeiPlugin extends BlankModPlugin {
new FusionReactorRecipeCategory(guiHelper), new IndustrialGrinderRecipeCategory(guiHelper),
new ImplosionCompressorRecipeCategory(guiHelper), new IndustrialElectrolyzerRecipeCategory(guiHelper),
new RollingMachineRecipeCategory(guiHelper), new VacuumFreezerRecipeCategory(guiHelper),
new GrinderRecipeCategory(guiHelper), new ExtractorRecipeCategory(guiHelper),
new GrinderRecipeCategory(guiHelper),
new CompressorRecipeCategory(guiHelper), new ScrapboxRecipeCategory(guiHelper),
new IndustrialSawmillRecipeCategory(guiHelper));
if(!IC2Duplicates.deduplicate()){
registry.addRecipeCategories(new ExtractorRecipeCategory(guiHelper));
registry.addRecipeHandlers(new ExtractorRecipeHandler(jeiHelpers));
}
for (final EFluidGenerator type : EFluidGenerator.values())
registry.addRecipeCategories(new FluidGeneratorRecipeCategory(type, guiHelper));
@ -202,7 +207,7 @@ public class TechRebornJeiPlugin extends BlankModPlugin {
new FusionReactorRecipeHandler(), new IndustrialGrinderRecipeHandler(jeiHelpers),
new ImplosionCompressorRecipeHandler(jeiHelpers), new IndustrialElectrolyzerRecipeHandler(jeiHelpers),
new RollingMachineRecipeHandler(), new VacuumFreezerRecipeHandler(jeiHelpers),
new GrinderRecipeHandler(jeiHelpers), new ExtractorRecipeHandler(jeiHelpers),
new GrinderRecipeHandler(jeiHelpers),
new CompressorRecipeHandler(jeiHelpers), new ScrapboxRecipeHandler(jeiHelpers),
new FluidGeneratorRecipeHandler(jeiHelpers), new IndustrialSawmillRecipeHandler(jeiHelpers));