Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fix horrible crash & review description
Browse files Browse the repository at this point in the history
  • Loading branch information
HoleFish committed Mar 14, 2024
1 parent c66d483 commit 8f4e208
Showing 1 changed file with 46 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ public GT_Multiblock_Tooltip_Builder createTooltip() {
+ " per tier (additive). ")
.addInfo(" > Low tier stabilisation field generators have a power output penalty.")
.addInfo(
" The power output penalty for Crude Stabilisation Field Generator is " + RED
" The power output penalty for using Crude Stabilisation Field Generators is " + RED
+ formatNumbers(
STABILITY_INCREASE_PROBABILITY_DECREASE_YIELD_PER_TIER
* TOTAL_CASING_TIERS_WITH_POWER_PENALTY
Expand All @@ -991,7 +991,7 @@ public GT_Multiblock_Tooltip_Builder createTooltip() {
+ GRAY
+ ".")
.addInfo(
" Decreases this penalty by " + RED
" This penalty decreases by " + RED
+ formatNumbers(STABILITY_INCREASE_PROBABILITY_DECREASE_YIELD_PER_TIER * 100)
+ "%"
+ GRAY
Expand Down Expand Up @@ -1044,7 +1044,7 @@ public GT_Multiblock_Tooltip_Builder createTooltip() {
+ "12.4 / 10^6 * Helium amount * Parallel"
+ GRAY
+ ".")
.addInfo("Each parallel success or not is calculated independently.").addInfo(TOOLTIP_BAR)
.addInfo("The success or failure of each parallel is determined independently.").addInfo(TOOLTIP_BAR)
.addInfo("Animations can be disabled by using a screwdriver on the multiblock.").addSeparator()
.addStructureInfo("Eye of Harmony structure is too complex! See schematic for details.")
.addStructureInfo(
Expand Down Expand Up @@ -1185,10 +1185,12 @@ public CheckRecipeResult processRecipe(EyeOfHarmonyRecipe recipeObject) {

// Get circuit damage, clamp it and then use it later for overclocking.
currentCircuitMultiplier = 0;
for (ItemStack itemStack : mInputBusses.get(0).getRealInventory()) {
if (GT_Utility.isAnyIntegratedCircuit(itemStack)) {
currentCircuitMultiplier = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 24);
break;
if (!mInputBusses.isEmpty()) {
for (ItemStack itemStack : mInputBusses.get(0).getRealInventory()) {
if (GT_Utility.isAnyIntegratedCircuit(itemStack)) {
currentCircuitMultiplier = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 24);
break;
}
}
}

Expand Down Expand Up @@ -1502,30 +1504,42 @@ private void outputFluidToAENetwork(FluidStack fluid, long amount) {
public String[] getInfoData() {
ArrayList<String> str = new ArrayList<>(Arrays.asList(super.getInfoData()));
str.add(GOLD + "---------------- Control Block Statistics ----------------");
str.add(
"Spacetime Compression Field Grade: " + EOH_TIER_FANCY_NAMES[spacetimeCompressionFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ spacetimeCompressionFieldMetadata
+ RESET
+ ")");
str.add(
"Time Dilation Field Grade: " + EOH_TIER_FANCY_NAMES[spacetimeCompressionFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ spacetimeCompressionFieldMetadata
+ RESET
+ ")");
str.add(
"Stabilisation Field Grade: " + EOH_TIER_FANCY_NAMES[spacetimeCompressionFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ spacetimeCompressionFieldMetadata
+ RESET
+ ")");
if (spacetimeCompressionFieldMetadata < 0) {
str.add("Spacetime Compression Field Grade: None");
} else {
str.add(
"Spacetime Compression Field Grade: " + EOH_TIER_FANCY_NAMES[spacetimeCompressionFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ spacetimeCompressionFieldMetadata
+ RESET
+ ")");
}
if (timeAccelerationFieldMetadata < 0) {
str.add("Time Dilation Field Grade: None");
} else {
str.add(
"Time Dilation Field Grade: " + EOH_TIER_FANCY_NAMES[timeAccelerationFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ timeAccelerationFieldMetadata
+ RESET
+ ")");
}
if (stabilisationFieldMetadata < 0) {
str.add("Stabilisation Field Grade: None");
} else {
str.add(
"Stabilisation Field Grade: " + EOH_TIER_FANCY_NAMES[stabilisationFieldMetadata]
+ RESET
+ " ("
+ YELLOW
+ stabilisationFieldMetadata
+ RESET
+ ")");
}
str.add(GOLD + "----------------- Internal Fluids Stored ----------------");
validFluidMap.forEach(
(key, value) -> str.add(BLUE + key.getLocalizedName() + RESET + " : " + RED + formatNumbers(value)));
Expand All @@ -1536,7 +1550,7 @@ public String[] getInfoData() {
str.add("Astral Array Fabricators detected: " + RED + formatNumbers(astralArrayAmount));
str.add("Total Parallel: " + RED + formatNumbers(parallelAmount));
str.add("EU Output: " + RED + toStandardForm(outputEU_BigInt) + RESET + " EU");
str.add("EU Input: " + RED + toStandardForm(usedEU) + RESET + "EU");
str.add("EU Input: " + RED + toStandardForm(usedEU.abs()) + RESET + " EU");
int currentMaxProgresstime = Math.max(maxProgresstime(), 1);
if (outputFluids.size() > 0) {
// Star matter is always the last element in the array.
Expand Down

0 comments on commit 8f4e208

Please sign in to comment.