forked from EnigmaticaModpacks/Enigmatica2Expert
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: ⚡Remove ~1500 [Squeezer] (forestry) capsule recipes
This change related to [Can] (forestry) [Wax Capsule] [Refractory Capsule] - Remove useless squeezer recipes, when forestry cans and capsules with every liquid in game could be squeezed. - Remove all usages of those capsules and cans. - Hide from JEI
- Loading branch information
Showing
8 changed files
with
74 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
...tion/data/bansoukou_diffs/forestry_1.12.2-5.8.2.422/forestry/core/ModuleFluids.class.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@@ -7,12 +7,9 @@ | ||
* forestry.api.fuels.FuelManager | ||
* forestry.api.fuels.GeneratorFuel | ||
* forestry.api.modules.ForestryModule | ||
- * forestry.api.recipes.RecipeManagers | ||
- * forestry.core.ModuleCore | ||
* forestry.core.config.Config | ||
* forestry.core.fluids.Fluids | ||
* forestry.core.items.EnumContainerType | ||
- * forestry.core.items.ItemRegistryCore | ||
* forestry.core.items.ItemRegistryFluids | ||
* forestry.core.proxy.Proxies | ||
* forestry.core.recipes.RecipeUtil | ||
@@ -43,12 +40,9 @@ import forestry.api.core.ForestryAPI; | ||
import forestry.api.fuels.FuelManager; | ||
import forestry.api.fuels.GeneratorFuel; | ||
import forestry.api.modules.ForestryModule; | ||
-import forestry.api.recipes.RecipeManagers; | ||
-import forestry.core.ModuleCore; | ||
import forestry.core.config.Config; | ||
import forestry.core.fluids.Fluids; | ||
import forestry.core.items.EnumContainerType; | ||
-import forestry.core.items.ItemRegistryCore; | ||
import forestry.core.items.ItemRegistryFluids; | ||
import forestry.core.proxy.Proxies; | ||
import forestry.core.recipes.RecipeUtil; | ||
@@ -140,14 +134,8 @@ extends BlankForestryModule { | ||
|
||
public void doInit() { | ||
FluidStack biomass; | ||
- FluidStack ethanol; | ||
- if (RecipeManagers.squeezerManager != null) { | ||
- ItemRegistryCore itemRegistryCore = ModuleCore.getItems(); | ||
- RecipeManagers.squeezerManager.addContainerRecipe(10, ModuleFluids.getItems().canEmpty.getItemStack(), itemRegistryCore.ingotTin.func_77946_l(), 0.05f); | ||
- RecipeManagers.squeezerManager.addContainerRecipe(10, ModuleFluids.getItems().waxCapsuleEmpty.getItemStack(), itemRegistryCore.beeswax.getItemStack(), 0.1f); | ||
- RecipeManagers.squeezerManager.addContainerRecipe(10, ModuleFluids.getItems().refractoryEmpty.getItemStack(), itemRegistryCore.refractoryWax.getItemStack(), 0.1f); | ||
- } | ||
- if ((ethanol = Fluids.BIO_ETHANOL.getFluid(1)) != null) { | ||
+ FluidStack ethanol = Fluids.BIO_ETHANOL.getFluid(1); | ||
+ if (ethanol != null) { | ||
GeneratorFuel ethanolFuel = new GeneratorFuel(ethanol, (int)(32.0f * ForestryAPI.activeMode.getFloatSetting("fuel.ethanol.generator")), 4); | ||
FuelManager.generatorFuel.put(ethanol.getFluid(), ethanolFuel); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters