aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/common
diff options
context:
space:
mode:
author梅天佑 <52530814+MeiTianyou@users.noreply.github.com>2023-05-16 23:20:41 +0800
committerGitHub <noreply@github.com>2023-05-16 17:20:41 +0200
commitcf0afb6f8246408293f5702c27487cc19aa16b41 (patch)
treebf84cf614e282cab72023cf05fa80762cd911c9a /src/main/java/gtPlusPlus/xmod/gregtech/common
parent04514282c08ebefdb3e68a46db34092f72be2316 (diff)
downloadGT5-Unofficial-cf0afb6f8246408293f5702c27487cc19aa16b41.tar.gz
GT5-Unofficial-cf0afb6f8246408293f5702c27487cc19aa16b41.tar.bz2
GT5-Unofficial-cf0afb6f8246408293f5702c27487cc19aa16b41.zip
Fixes several minor bugs (#630)
* Always store at least 2048 EU regardless of tier, so that the machine can work properly should close #11190 in GTNewHorizons/GT-New-Horizons-Modpack * change tooltip to match real formula should close #13238 in GTNewHorizons GT-New-Horizons-Modpack * shot in the dark to fix some chemical formulas * Fix hardcoded formula for ZrF_4 * fix nitinol formula * Add a method to count uppercase characters * A better shot at fixing chemical formulas Added ghetto detection of when there is more than 1 element in a grouping, even when their symbols combined don't exceed three characters (like hydroxide) * fix material components in ammonium tetrafluoroberyllate last in a series of commits designed to resolve #11340 in GTNewHorizons/GT-New-Horizons-Modpack * Add a method that only exposes the data orb selected by the circuot * Make the duplicator only check for recipes with the selected data orb Should close #11583 in GTNewHorizons/GT-New-Horizons-Modpack * Change TGS tooltip to reflect real behavior * Change TGS info in NEI to reflect true behavior Should close #11650 in GTNewHorizons/GT-New-Horizons-Modpack * Don't remove energy from the PSS when it attempts to fill a full hatch should resolve #13317 in GTNewHorizons/GT-New-Horizons-Modpack, where the issues was mistakenly identified as the PSS accepting power when it is full. In fact, it does stop accepting power when full, but it is constantly leaking power into hatches. However it should be noted that unless the PSS has no hatches, it pays a tax each tick which will of course mean that it is almost never going to be filled up. * Fix some minor errors due to writing all previous commmits with github's file-view edit feature try it sometime and suffer! also spotless apply * better formatting * off by one * add a line for power loss in the gui * fix 0iq moment * Revert "Don't remove energy from the PSS when it attempts to fill a full hatch" This reverts commit c20cc0b3a528872c8003bea2944aa1ad7a020e01. * typo * additional typo * Delete layout.json merp
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java4
5 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
index c3522a1a0a..e1c591f33b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
@@ -127,7 +127,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public long maxEUStore() {
- return GT_Values.V[this.mTier] * (this.mTier * GT_Values.V[this.mTier]);
+ return Math.max(2048L, GT_Values.V[this.mTier] * (this.mTier * GT_Values.V[this.mTier]));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
index c22712ff71..890ed018bf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
@@ -420,7 +420,7 @@ public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase
for (GT_MetaTileEntity_Hatch_ElementalDataOrbHolder tHatch : mReplicatorDataOrbHatches) {
tHatch.mRecipeMap = getRecipeMap();
if (isValidMetaTileEntity(tHatch)) {
- tItems.addAll(tHatch.getInventory());
+ tItems.add(tHatch.getOrbByCircuit());
}
}
tItems.removeAll(Collections.singleton(null));
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
index ac961f8fdc..bb15f52aff 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
@@ -115,10 +115,10 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
.addInfo("Requires a Saw or Chainsaw in GUI slot").addInfo("Output multiplier:").addInfo("Saw = 1x")
.addInfo("Buzzsaw = 2x").addInfo("Chainsaw = 4x")
.addInfo("Add a sapling in the input bus to select wood type output")
- .addInfo("Tools can also be fed to the controller via input bus")
+ .addInfo("The sapling is not consumed").addInfo("Tools can also be fed to the controller via input bus")
.addInfo("The working speed is fixed for 5s")
.addInfo("Production Formula: (2 * tier^2 - 2 * tier + 5) * 5 * saw boost")
- .addInfo("When fertilizer is insufficient, sapling production reduced to one-tenth")
+ .addInfo("When fertilizer is supplied, produces saplings instead of logs")
.addInfo("Forestry saplings can get increased production")
.addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
.addController("Front center").addCasingInfo("Sterile Farm Casing", 8).addInputBus("Any casing", 1)
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
index 623f5e16c4..24e0d6acd5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
@@ -88,7 +88,7 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
.addInfo("If there's more Cold Salt than heat, all the heat is used up and returns to 0")
.addInfo("The heat increase is most efficient at exactly half of maximum heat")
.addInfo("Minimum efficiency at 0 or 100000 heat, maximum efficiency at 50000")
- .addInfo("Heat Efficiency formula: (|currentHeat - 50000| ^ 0.8 + 7000) / 7000")
+ .addInfo("Heat Efficiency formula: ( 7000 - [|currentHeat - 50000| ^ 0.8]) / 7000")
.addInfo("Heat gain per cycle: numberHeaters * heatEfficiency * (10 + bonus)")
.addInfo("Bonus: 1 ring = +1, 2 rings = +2, 3 rings = +4, 4 rings = +8, 5 rings = +16")
.addInfo("Total number of reflectors based on how many rings are built:")
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
index 5b22be004b..7114bed42f 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
@@ -897,6 +897,10 @@ public class GregtechMetaTileEntity_PowerSubStationController
() -> "Avg Out: " + GT_Utility.formatNumbers(getAverageEuConsumed()) + " EU")
.setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 30))
.widget(
+ TextWidget.dynamicString(
+ () -> "Powerloss: " + GT_Utility.formatNumbers(computeEnergyTax()) + " EU per tick")
+ .setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 40))
+ .widget(
new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_ENERGY_FRAME).setPos(4, 155)
.setSize(149, 7))
.widget(