diff options
author | Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> | 2024-04-27 17:52:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-28 01:52:45 +0200 |
commit | 04de42b33e7cf7d67f3bbe65295c401a69895b2f (patch) | |
tree | d59a2e993f79b93c0270cf3114a1031a7910fe48 | |
parent | 896248241afe9deea6a29ddee9f651d88e33fca8 (diff) | |
download | GT5-Unofficial-04de42b33e7cf7d67f3bbe65295c401a69895b2f.tar.gz GT5-Unofficial-04de42b33e7cf7d67f3bbe65295c401a69895b2f.tar.bz2 GT5-Unofficial-04de42b33e7cf7d67f3bbe65295c401a69895b2f.zip |
Only trigger Machine Controller Cover Safe Mode when a shutdown was critical. (#2586)
* Only trigger Machine Controller Cover Safe Mode when a shutdown was critical.
* spotless
-rw-r--r-- | dependencies.gradle | 6 | ||||
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/dependencies.gradle b/dependencies.gradle index 14d87acec5..e76e3f3dc9 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -36,7 +36,7 @@ dependencies { api("com.github.GTNewHorizons:StructureLib:1.3.1:dev") api("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") - api("com.github.GTNewHorizons:NotEnoughItems:2.5.26-GTNH:dev") + api("com.github.GTNewHorizons:NotEnoughItems:2.5.27-GTNH:dev") api("com.github.GTNewHorizons:GTNHLib:0.2.11:dev") api("com.github.GTNewHorizons:ModularUI:1.1.42:dev") api("com.github.GTNewHorizons:waila:1.7.3:dev") @@ -45,10 +45,10 @@ dependencies { implementation("com.github.GTNewHorizons:Avaritia:1.49:dev") - compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-alpha38:api') { transitive = false } + compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-alpha39:api') { transitive = false } compileOnlyApi("com.github.GTNewHorizons:AppleCore:3.3.0:dev") { transitive = false } compileOnlyApi("com.github.GTNewHorizons:BuildCraft:7.1.39:dev") { transitive = false } - compileOnlyApi("com.github.GTNewHorizons:EnderIO:2.7.3:dev") { transitive = false } + compileOnlyApi("com.github.GTNewHorizons:EnderIO:2.7.4:dev") { transitive = false } compileOnlyApi("com.github.GTNewHorizons:ProjectRed:4.9.5-GTNH:dev") { transitive = false } compileOnlyApi("com.github.GTNewHorizons:ForestryMC:4.8.9:dev") { transitive = false } compileOnlyApi("com.github.GTNewHorizons:Railcraft:9.15.8:dev") { transitive = false } diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java index 560a91bcef..320876568f 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java @@ -39,7 +39,8 @@ public class GT_Cover_ControlsWork extends GT_CoverBehavior implements IControls } else if (aCoverVariable == 2) { machine.disableWorking(); } else { - if (machine.wasShutdown()) { + if (machine.wasShutdown() && machine.getLastShutDownReason() + .wasCritical()) { machine.disableWorking(); if (!mPlayerNotified) { EntityPlayer player = lastPlayer == null ? null : lastPlayer.get(); |