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

Commit

Permalink
Allow wire cutter to toggle batch mode on Component Assembly line (#250)
Browse files Browse the repository at this point in the history
* Allow wire cutter to toggle batch mode on COAL

* spotlessApply (#251)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
NotAPenguin0 and github-actions[bot] authored Apr 16, 2024
1 parent 010a594 commit ae8473d
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,21 @@ public void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, f
StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation);
}

@Override
public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
float aX, float aY, float aZ, ItemStack aTool) {
if (aPlayer.isSneaking()) {
batchMode = !batchMode;
if (batchMode) {
GT_Utility.sendChatToPlayer(aPlayer, "Batch recipes.");
} else {
GT_Utility.sendChatToPlayer(aPlayer, "Don't batch recipes.");
}
}

return true;
}

@Override
public boolean supportsInputSeparation() {
return true;
Expand Down

0 comments on commit ae8473d

Please sign in to comment.