aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-29 05:29:30 +0000
committerGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-29 05:29:30 +0000
commitd41d6e83b8e93f7c538af110187c84c7dcab34e6 (patch)
tree71edf6294420b864ef5b4e30c36e3b4078310cd8 /src/main/java/com
parentf11b38ced4935b4e48348a21ec31e07b34ef0876 (diff)
downloadGT5-Unofficial-d41d6e83b8e93f7c538af110187c84c7dcab34e6.tar.gz
GT5-Unofficial-d41d6e83b8e93f7c538af110187c84c7dcab34e6.tar.bz2
GT5-Unofficial-d41d6e83b8e93f7c538af110187c84c7dcab34e6.zip
Small fixes
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java
index ae85d9dbf1..fe4e0227d0 100644
--- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java
+++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java
@@ -14,6 +14,9 @@ import gregtech.api.enums.Materials;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
+
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.util.GT_OreDictUnificator;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
@@ -103,12 +106,15 @@ public class EyeOfHarmonyRecipe {
this.recipeTriggerItem = new ItemStack(block);
this.outputItems = validDustGenerator(materialList);
- // this.outputItems.sort(Comparator.comparingLong(ItemStackLong::getStackSize));
- // Collections.reverse(this.outputItems);
this.sumOfItems =
this.outputItems.stream().map(ItemStackLong::getStackSize).reduce(0L, Long::sum);
+ this.outputItems.add(new ItemStackLong(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Stone, 1), this.sumOfItems * 3));
+ this.outputItems.sort(Comparator.comparingLong(ItemStackLong::getStackSize));
+ Collections.reverse(this.outputItems);
+
+
for (ItemStackLong itemStackLong : outputItems) {
double stackSize = (double) itemStackLong.getStackSize();
double probability = Math.round(100_000 * stackSize / sumOfItems) / 1000.0;