Skip to content

Commit

Permalink
Fix DivorceRequiresPriest: auto not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgH93 committed Jul 16, 2022
1 parent 031f58f commit 2da90df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ private boolean getAutoableBoolean(final @NotNull String key, final @NotNull Str
String val = getConfigE().getString(key, defaultValue).trim().toLowerCase(Locale.ENGLISH);
switch(val)
{
case "1":
case "on":
case "yes":
case "true": return true;
case "0":
case "off":
case "no":
case "false": return false;
Expand All @@ -120,7 +122,7 @@ public boolean isSelfMarriageAllowed()

public boolean isSelfDivorceAllowed()
{
return !getAutoableBoolean("Marriage.DivorceRequiresPriest", "auto", isSelfMarriageAllowed());
return !getAutoableBoolean("Marriage.DivorceRequiresPriest", "auto", !isSelfMarriageAllowed());
}

public boolean isSurnamesEnabled()
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<packaging>pom</packaging>

<properties>
<revision>2.6.5</revision>
<revision>2.6.6</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<bukkitVersion>1.15.2-R0.1-SNAPSHOT</bukkitVersion>
Expand Down

0 comments on commit 2da90df

Please sign in to comment.