From 2dbee81892415281abf85c8695fb4f5e1e6e01e5 Mon Sep 17 00:00:00 2001 From: BooLTonian <80687318+BooLTonian@users.noreply.github.com> Date: Fri, 29 Oct 2021 04:07:25 -0400 Subject: [PATCH] Corrected minor bool The previous format caused the activation of major triads when minor was true, and minor triads when minor was false. --- src/net/cupofcode/instruments/listeners/InventoryClick.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/cupofcode/instruments/listeners/InventoryClick.java b/src/net/cupofcode/instruments/listeners/InventoryClick.java index ec46434..780c6fa 100644 --- a/src/net/cupofcode/instruments/listeners/InventoryClick.java +++ b/src/net/cupofcode/instruments/listeners/InventoryClick.java @@ -64,7 +64,7 @@ public void onInventoryClick(InventoryClickEvent e) { if (useChords) { if (e.getClick().equals(ClickType.SHIFT_LEFT) || e.getClick().equals(ClickType.SHIFT_RIGHT)) { - boolean minor = e.getClick().equals(ClickType.SHIFT_LEFT) ? true : false; + boolean minor = e.getClick().equals(ClickType.SHIFT_LEFT) ? false : true; String[] notes = minor ? Utils.getMinorTriad(note) : Utils.getMajorTriad(note); for (String pNote : notes) { instrument.playNote(pNote, octave);