Skip to content

Commit

Permalink
Merge branch 'master' into double_patterns_cribs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master authored Nov 11, 2024
2 parents 960a8d0 + 82e2232 commit 6f9c7d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
api("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.6.44-GTNH:dev")
api("com.github.GTNewHorizons:NotEnoughIds:2.1.6:dev")
api("com.github.GTNewHorizons:GTNHLib:0.5.19:dev")
api("com.github.GTNewHorizons:GTNHLib:0.5.20:dev")
api("com.github.GTNewHorizons:ModularUI:1.2.12:dev")
api("com.github.GTNewHorizons:ModularUI2:2.1.14-1.7.10:dev")
api("com.github.GTNewHorizons:waila:1.8.1:dev")
Expand Down Expand Up @@ -73,14 +73,14 @@ dependencies {
compileOnly("com.github.GTNewHorizons:Galaxy-Space-GTNH:1.1.96-GTNH:dev") { transitive = false }

compileOnlyApi("com.github.GTNewHorizons:Galacticraft:3.2.5-GTNH:dev") { transitive = false }
implementation("com.github.GTNewHorizons:TinkersConstruct:1.12.12-GTNH:dev")
implementation("com.github.GTNewHorizons:TinkersConstruct:1.12.13-GTNH:dev")

compileOnly("com.github.GTNewHorizons:Chisel:2.15.3-GTNH:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:Translocators:1.2.1:dev") { transitive = false }
compileOnly rfg.deobf("curse.maven:cofh-core-69162:2388751")
compileOnly("com.github.GTNewHorizons:Nuclear-Control:2.6.7:dev") { transitive = false }
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") { transitive = false }
implementation("com.github.GTNewHorizons:Hodgepodge:2.5.76:dev")
implementation("com.github.GTNewHorizons:Hodgepodge:2.5.77:dev")
compileOnly('com.github.GTNewHorizons:Botania:1.11.5-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:HoloInventory:2.4.13-GTNH:dev') { transitive = false }
compileOnly rfg.deobf("curse.maven:extra-utilities-225561:2264384")
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/gregtech/api/util/GTWaila.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public static String getMachineProgressString(boolean isActive, long maxProgress

if (!isActive) return "Idle";

return "In progress: " + String.format("%,.2f", (double) progresstime / 20)
return "In progress: " + String.format("%,.1f", (double) progresstime / 20)
+ "s / "
+ String.format("%,.2f", (double) maxProgresstime / 20)
+ String.format("%,.1f", (double) maxProgresstime / 20)
+ "s ("
+ GTUtility.formatNumbers((Math.round((double) progresstime / maxProgresstime * 1000) / 10.0))
+ String.format("%,.1f", (Math.round((double) progresstime / maxProgresstime * 1000) / 10.0))
+ "%)";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.onElementPass;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.withChannel;
import static gregtech.api.enums.GTValues.AuthorOmdaCZ;
import static gregtech.api.enums.HatchElement.Energy;
import static gregtech.api.enums.HatchElement.InputBus;
Expand Down Expand Up @@ -110,8 +111,10 @@ public class MTEMultiSolidifier extends MTEExtendedPowerMultiBlockBase<MTEMultiS
{ "BBB~BBB", "BBBBBBB", "BBBBBBB", "BBBBBBB", "BBBBBBB" } })))
.addElement(
'A',
BorosilicateGlass
.ofBoroGlass((byte) 0, (byte) 1, Byte.MAX_VALUE, (te, t) -> te.glassTier = t, te -> te.glassTier))
withChannel(
"glass",
BorosilicateGlass
.ofBoroGlass((byte) 0, (byte) 1, Byte.MAX_VALUE, (te, t) -> te.glassTier = t, te -> te.glassTier)))
.addElement(
'B',
buildHatchAdder(MTEMultiSolidifier.class).atLeast(InputBus, InputHatch, OutputBus, Maintenance, Energy)
Expand Down Expand Up @@ -218,7 +221,7 @@ protected MultiblockTooltipBuilder createTooltip() {
public void construct(ItemStack stackSize, boolean hintsOnly) {
buildPiece(STRUCTURE_PIECE_MAIN, stackSize, hintsOnly, 3, 4, 0);
// max Width, minimal mid-pieces to build on each side
int totalWidth = Math.min(stackSize.stackSize + 1, 6);
int totalWidth = Math.min(stackSize.stackSize - 1, 6);
for (int i = 0; i < totalWidth; i++) {
// pieces are 2 wide so offset 5 from controller and number of pieces times width of each piece
buildPiece(MS_LEFT_MID, stackSize, hintsOnly, 5 + 2 * i, 4, 0);
Expand All @@ -234,7 +237,7 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBu
if (mMachine) return -1;
int built = survivialBuildPiece(STRUCTURE_PIECE_MAIN, stackSize, 3, 4, 0, elementBudget, env, false, true);
if (built >= 0) return built;
int totalWidth = Math.min(stackSize.stackSize + 1, 6);
int totalWidth = Math.min(stackSize.stackSize - 1, 6);
for (int i = 0; i < totalWidth; i++) {
built = survivialBuildPiece(MS_LEFT_MID, stackSize, 5 + 2 * i, 4, 0, elementBudget, env, false, true);
built += survivialBuildPiece(MS_RIGHT_MID, stackSize, -4 - 2 * i, 4, 0, elementBudget, env, false, true);
Expand Down

0 comments on commit 6f9c7d1

Please sign in to comment.