aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbdiel Kavash <19243993+AbdielKavash@users.noreply.github.com>2024-05-15 23:56:45 -0600
committerGitHub <noreply@github.com>2024-05-16 07:56:45 +0200
commit008b321c9073a4224eb89ff1fd1e847dd5e6dff2 (patch)
treea7b95d1fea957218460fd593b3b58bb9dfff9c2c /src
parent1b9cd87d7d8491fe79dd5c5ecd707109932848de (diff)
downloadGT5-Unofficial-008b321c9073a4224eb89ff1fd1e847dd5e6dff2.tar.gz
GT5-Unofficial-008b321c9073a4224eb89ff1fd1e847dd5e6dff2.tar.bz2
GT5-Unofficial-008b321c9073a4224eb89ff1fd1e847dd5e6dff2.zip
Enable input bus separation for the MCR. (#9)
* Enable input bus separation for the MCR. * Allow toggling by screwdriver.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaChemicalReactor.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaChemicalReactor.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaChemicalReactor.java
index 3764812689..f7aaffef09 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaChemicalReactor.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaChemicalReactor.java
@@ -122,6 +122,14 @@ public class GT_TileEntity_MegaChemicalReactor
}
@Override
+ public void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ inputSeparation = !inputSeparation;
+ GT_Utility.sendChatToPlayer(
+ aPlayer,
+ StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation);
+ }
+
+ @Override
public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
float aX, float aY, float aZ) {
if (aPlayer.isSneaking()) {
@@ -233,4 +241,9 @@ public class GT_TileEntity_MegaChemicalReactor
public boolean supportsVoidProtection() {
return true;
}
+
+ @Override
+ public boolean supportsInputSeparation() {
+ return true;
+ }
}