diff options
author | HoleFish <48403212+HoleFish@users.noreply.github.com> | 2024-08-15 02:58:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 20:58:06 +0200 |
commit | a27c6786958249f6ed54693599900d6ecfb9edaf (patch) | |
tree | e8d33f93883f6efe8c4c974e12548123f650cc08 /src/main/java/com | |
parent | a8536e01d56387a30785c5309e81acaf728ed364 (diff) | |
download | GT5-Unofficial-a27c6786958249f6ed54693599900d6ecfb9edaf.tar.gz GT5-Unofficial-a27c6786958249f6ed54693599900d6ecfb9edaf.tar.bz2 GT5-Unofficial-a27c6786958249f6ed54693599900d6ecfb9edaf.zip |
Remove fixEnergyRequirements (#2890)
* Remove fixEnergyRequirements
* update
* fix
* spotless
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java | 3 | ||||
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java | 19 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java index 415b5af36c..30c1276f97 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java @@ -224,9 +224,6 @@ public final class MainMod { recipesAdded = true; } - StaticRecipeChangeLoaders.fixEnergyRequirements(); - // StaticRecipeChangeLoaders.synchroniseCircuitUseMulti(); - // Accept recipe map changes into Buffers RecipeMap.ALL_RECIPE_MAPS.values() .forEach( diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java index 4271b43303..9d9de87173 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java @@ -18,7 +18,6 @@ import static com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader import static com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader.NOBLE_GAS; import static com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader.fluids; import static com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader.molten; -import static gregtech.api.enums.GT_Values.VN; import static gregtech.api.enums.Mods.TinkerConstruct; import static gregtech.api.enums.TickTime.TICK; @@ -43,7 +42,6 @@ import com.github.bartimaeusnek.bartworks.API.recipe.DynamicGTRecipe; import com.github.bartimaeusnek.bartworks.MainMod; import com.github.bartimaeusnek.bartworks.system.material.Werkstoff; import com.github.bartimaeusnek.bartworks.util.BW_Util; -import com.github.bartimaeusnek.bartworks.util.StreamUtils; import com.github.bartimaeusnek.bartworks.util.log.DebugLog; import com.github.bartimaeusnek.crossmod.BartWorksCrossmod; import com.google.common.collect.ArrayListMultimap; @@ -105,23 +103,6 @@ public class StaticRecipeChangeLoaders { editRecipes(toChange, getNoGasItems(toChange)); } - public static void fixEnergyRequirements() { - RecipeMap.ALL_RECIPE_MAPS.values() - .stream() - .filter(StreamUtils::filterVisualMaps) - .forEach( - recipeMap -> recipeMap.getAllRecipes() - .parallelStream() - .forEach(gt_recipe -> { - for (int i = 0; i < VN.length - 1; i++) { - if (gt_recipe.mEUt > BW_Util.getMachineVoltageFromTier(i) - && gt_recipe.mEUt <= BW_Util.getTierVoltage(i)) { - gt_recipe.mEUt = BW_Util.getMachineVoltageFromTier(i); - } - } - })); - } - public static void unificationRecipeEnforcer() { List<GT_Recipe> toRemove = new ArrayList<>(); for (Werkstoff werkstoff : Werkstoff.werkstoffHashSet) { |