Skip to content

Commit

Permalink
Merge pull request #1665 from Scoppio/game-options-interface
Browse files Browse the repository at this point in the history
feat: inverted function call
  • Loading branch information
HammerGS authored Dec 15, 2024
2 parents 97444ab + 5ea027b commit 04860ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions megameklab/src/megameklab/ui/generalUnit/QuirksTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void refreshQuirks() {
for (Enumeration<IOption> j = group.getSortedOptions(); j.hasMoreElements(); ) {
IOption option = j.nextElement();

if (null == option || !Quirks.isQuirkLegalFor(option, getEntity())) {
if (null == option || Quirks.isQuirkDisallowed(option, getEntity())) {
continue;
}

Expand All @@ -93,7 +93,7 @@ public void refreshQuirks() {
IOptionGroup group = i.nextElement();
for (Enumeration<IOption> j = group.getSortedOptions(); j.hasMoreElements(); ) {
IOption option = j.nextElement();
if (!WeaponQuirks.isQuirkLegalFor(option, getEntity(), m.getType())) {
if (WeaponQuirks.isQuirkDisallowed(option, getEntity(), m.getType())) {
continue;
}
addWeaponQuirk(key, option);
Expand Down

0 comments on commit 04860ad

Please sign in to comment.