Fixes a bug preventing default option states for paid sign conditions
This commit is contained in:
parent
c6d3a771c3
commit
c44ff5c890
@ -157,10 +157,10 @@ public class EditCommand extends TokenizedCommand {
|
|||||||
condition.getStringToMatch();
|
condition.getStringToMatch();
|
||||||
boolean executeRegEx = property == PaidSignConditionProperty.EXECUTE_REG_EX ? Boolean.parseBoolean(newValue) :
|
boolean executeRegEx = property == PaidSignConditionProperty.EXECUTE_REG_EX ? Boolean.parseBoolean(newValue) :
|
||||||
condition.executeRegex();
|
condition.executeRegex();
|
||||||
boolean ignoreCase = property == PaidSignConditionProperty.IGNORE_CASE ? Boolean.parseBoolean(newValue) :
|
boolean ignoreCase = property == PaidSignConditionProperty.IGNORE_CASE ? OptionState.getBooleanValue(
|
||||||
condition.ignoreCase();
|
OptionState.fromString(newValue), sign.getIgnoreCase()) : condition.ignoreCase();
|
||||||
boolean ignoreColor = property == PaidSignConditionProperty.IGNORE_COLOR ? Boolean.parseBoolean(newValue) :
|
boolean ignoreColor = property == PaidSignConditionProperty.IGNORE_COLOR ? OptionState.getBooleanValue(
|
||||||
condition.ignoreColor();
|
OptionState.fromString(newValue), sign.getIgnoreColor()) : condition.ignoreColor();
|
||||||
|
|
||||||
//Make sure to test the regular expression in case anything changed
|
//Make sure to test the regular expression in case anything changed
|
||||||
if (executeRegEx && isRegExInvalid(sender, stringToMatch)) {
|
if (executeRegEx && isRegExInvalid(sender, stringToMatch)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user