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

Commit

Permalink
Advanced boiler steam capacity fix
Browse files Browse the repository at this point in the history
Been broken for 2 years now it works as anticipated.
  • Loading branch information
Lyfts authored and wlhlm committed Jul 11, 2023
1 parent 9e884e6 commit 8dc037d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {

api('com.github.GTNewHorizons:GT5-Unofficial:5.09.43.80:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.43.123:dev')
api("com.github.GTNewHorizons:bartworks:0.7.17:dev")

implementation('curse.maven:cofh-core-69162:2388751')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public int getCapacity() {
}

// This type of machine can have different water and steam capacities.
@Override
public int getSteamCapacity() {
return 2 * getCapacity();
}
Expand Down Expand Up @@ -212,17 +213,6 @@ protected void updateFuel(IGregTechTileEntity tile, long ticks) {
}
}

@Override
protected void produceSteam(int aAmount) {
super.produceSteam(aAmount);

if (mSteam.amount > getSteamCapacity()) {
sendSound(SOUND_EVENT_LET_OFF_EXCESS_STEAM);

mSteam.amount = getSteamCapacity();
}
}

@Override
// Since this type of machine can have different water and steam capacities, we need to override getTankInfo() to
// support returning those different capacities.
Expand Down

0 comments on commit 8dc037d

Please sign in to comment.