From 8dc037d304f1a9887f05f15250bc2c4dca52e037 Mon Sep 17 00:00:00 2001 From: Lyfts <127234178+lyfts@users.noreply.github.com> Date: Sun, 9 Jul 2023 22:57:54 +0200 Subject: [PATCH] Advanced boiler steam capacity fix Been broken for 2 years now it works as anticipated. --- dependencies.gradle | 2 +- .../generators/GT_MetaTileEntity_Boiler_Base.java | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 751d06ddea..94fe32121a 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -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') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java index 402065f7a9..ee85b16f5f 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java @@ -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(); } @@ -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.