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
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAPenguin0 committed Apr 16, 2024
1 parent 87b8f7b commit 0994437
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 0994437

Please sign in to comment.