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

Commit

Permalink
Allow wire cutter to toggle batch mode on MABS (#868)
Browse files Browse the repository at this point in the history
* Allow wire cutter to toggle batch mode on MABS

* Spotless apply for branch fix/tool-batch-mode for #868 (#869)

spotlessApply

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 87b8f7b commit 95b52ba
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,21 @@ public final void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPla
}
}

@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 int getPollutionPerSecond(ItemStack aStack) {
return 102400;
Expand Down

0 comments on commit 95b52ba

Please sign in to comment.