diff options
| author | MadMan310 <66886359+MadMan310@users.noreply.github.com> | 2023-02-26 03:21:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-26 12:21:50 +0100 |
| commit | a8ecbb08f1397d822729c8b6b62301dc405e3c25 (patch) | |
| tree | bd7504d16fde3991b0968c4545bbcf51ba778224 /src/main/java/goodgenerator/loader | |
| parent | 33feb06f8c9d5ebd5aeb5a03dcdb8f5d3bd73d06 (diff) | |
| download | GT5-Unofficial-a8ecbb08f1397d822729c8b6b62301dc405e3c25.tar.gz GT5-Unofficial-a8ecbb08f1397d822729c8b6b62301dc405e3c25.tar.bz2 GT5-Unofficial-a8ecbb08f1397d822729c8b6b62301dc405e3c25.zip | |
More CoAL improvements (#136)
* Update TecTech Dependency
* Add more item and fluid slots to the CoAL map
* More Input Bus candidates
* Add separate input bus capability
* Spotless
* NEI fix
* tooltip fix
* merge master (#139)
* Update buildscript, fix missing windows gradle wrapper
* Add alternative recipe to circuits (#137)
* Make PrAss Accept EV+ glass (#138)
* Add alternative recipe to circuits
* Add glass Variants to PrAss
---------
Co-authored-by: Raven Szewczyk <git@eigenraven.me>
Co-authored-by: LewisSaber <39595617+LewisSaber@users.noreply.github.com>
* Recipe duration and power is 64x +cleanup
* power+time req is 64x for LV-IV components
* added support for new GUI buttons
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Raven Szewczyk <git@eigenraven.me>
Co-authored-by: LewisSaber <39595617+LewisSaber@users.noreply.github.com>
Diffstat (limited to 'src/main/java/goodgenerator/loader')
| -rw-r--r-- | src/main/java/goodgenerator/loader/ComponentAssemblyLineRecipeLoader.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/main/java/goodgenerator/loader/ComponentAssemblyLineRecipeLoader.java b/src/main/java/goodgenerator/loader/ComponentAssemblyLineRecipeLoader.java index ced594689e..6a2c5a8878 100644 --- a/src/main/java/goodgenerator/loader/ComponentAssemblyLineRecipeLoader.java +++ b/src/main/java/goodgenerator/loader/ComponentAssemblyLineRecipeLoader.java @@ -84,8 +84,8 @@ public class ComponentAssemblyLineRecipeLoader { compactItems(fixedInputs, info.getRight()).toArray(new ItemStack[0]), fixedFluids.toArray(new FluidStack[0]), info.getLeft().get(OUTPUT_MULTIPLIER), - recipe.mDuration * INPUT_MULTIPLIER, - energy, + recipe.mDuration * OUTPUT_MULTIPLIER, + energy * OUTPUT_MULTIPLIER, info.getRight()); } } @@ -143,15 +143,19 @@ public class ComponentAssemblyLineRecipeLoader { MyRecipeAdder.instance.addComponentAssemblyLineRecipe( fixedInputs.toArray(new ItemStack[0]), fixedFluids.toArray(new FluidStack[0]), - info.getLeft().get(OUTPUT_MULTIPLIER), - recipe.mDuration, - recipe.mEUt, - info.getRight()); + info.getLeft().get(OUTPUT_MULTIPLIER), // The component output + recipe.mDuration * OUTPUT_MULTIPLIER, // Takes as long as this many + recipe.mEUt * OUTPUT_MULTIPLIER, // Takes the power of this many + info.getRight()); // Casing tier } } }); } + /** + * Looks for a matching FluidStack and merges the amount of the converted fluid with the one it found. Otherwise, it + * will add the converted to the fluid inputs. + */ private static void replaceIntoFluids(List<ItemStack> inputs, List<FluidStack> fluidOutputs, int threshold) { HashMap<ItemStack, Integer> totals = getTotalItems(inputs.toArray(new ItemStack[0])); ArrayList<ItemStack> newInputs = new ArrayList<>(); @@ -160,13 +164,11 @@ public class ComponentAssemblyLineRecipeLoader { boolean isConverted = false; if (OreDictionary.getOreIDs(input).length > 0 && count > threshold) { FluidStack foundFluidStack = tryConvertItemStackToFluidMaterial(input); - // Looks for a matching fluid stack and merges the amount of the converted fluid with - // the one it found. Otherwise it will add the converted to the fluid inputs. + + ItemData data = GT_OreDictUnificator.getAssociation(input); // Prevents the uncraftable molten magnetic samarium from being converted into fluid during auto // generation - - ItemData data = GT_OreDictUnificator.getAssociation(input); if (data != null && data.mMaterial.mMaterial == Materials.SamariumMagnetic) { input = GT_OreDictUnificator.get(data.mPrefix, Materials.Samarium, 1); foundFluidStack = tryConvertItemStackToFluidMaterial(input); @@ -244,7 +246,7 @@ public class ComponentAssemblyLineRecipeLoader { * For example: If your OreDictionary is something like {@code gearGtSmallSpaceTime}, a conventional search would * return something like {@code gearGt} instead of {@code gearGtSmall}. This makes the longer String the most * accurate. - * + * * @param oreDict The Ore Dictionary entry * @return The longest ore prefix that the OreDict string starts with. This makes it the most accurate prefix. */ |
