Fixes #904
This commit is contained in:
parent
bc5241274c
commit
a5d70a65aa
@ -114,8 +114,10 @@ public class HashTagPatternParser extends FaweParser<Pattern> {
|
|||||||
}
|
}
|
||||||
pattern = (Pattern) dispatcher.call(command, locals, new String[0]);
|
pattern = (Pattern) dispatcher.call(command, locals, new String[0]);
|
||||||
}
|
}
|
||||||
patterns.add(pattern);
|
if (pattern != null) {
|
||||||
chances.add(chance);
|
patterns.add(pattern);
|
||||||
|
chances.add(chance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (CommandException | ExpressionException e) {
|
} catch (CommandException | ExpressionException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user