mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-01 07:03:52 +01:00
Fixes #551
This commit is contained in:
parent
31d43b27d8
commit
bb92a64be3
@ -351,7 +351,7 @@ public class MainUtil {
|
||||
return new FaweInputStream(is);
|
||||
}
|
||||
boolean legacy;
|
||||
if (mode > 10) {
|
||||
if (mode >= 10) {
|
||||
legacy = false;
|
||||
mode = -mode + 10;
|
||||
} else {
|
||||
|
@ -71,7 +71,7 @@ public class DefaultMaskParser extends FaweParser<Mask> {
|
||||
Mask mask = null;
|
||||
if (command.isEmpty()) {
|
||||
mask = parseFromInput(StringMan.join(entry.getValue(), ','), context);
|
||||
} if (dispatcher.get(command) == null) {
|
||||
} else if (dispatcher.get(command) == null) {
|
||||
// Legacy patterns
|
||||
char char0 = command.charAt(0);
|
||||
boolean charMask = input.length() > 1 && input.charAt(1) != '[';
|
||||
|
@ -68,7 +68,7 @@ public class DefaultTransformParser extends FaweParser<ResettableExtent> {
|
||||
double chance = 1;
|
||||
if (command.isEmpty()) {
|
||||
transform = parseFromInput(StringMan.join(entry.getValue(), ','), context);
|
||||
} if (dispatcher.get(command) == null) {
|
||||
} else if (dispatcher.get(command) == null) {
|
||||
// Legacy syntax
|
||||
int percentIndex = command.indexOf('%');
|
||||
if (percentIndex != -1) { // Legacy percent pattern
|
||||
|
@ -62,8 +62,7 @@ public class HashTagPatternParser extends FaweParser<Pattern> {
|
||||
double chance = 1;
|
||||
if (command.isEmpty()) {
|
||||
pattern = parseFromInput(StringMan.join(entry.getValue(), ','), context);
|
||||
} else {
|
||||
if (dispatcher.get(command) == null) {
|
||||
} else if (dispatcher.get(command) == null) {
|
||||
// Legacy patterns
|
||||
char char0 = command.charAt(0);
|
||||
boolean charMask = input.length() > 1 && input.charAt(1) != '[';
|
||||
@ -109,7 +108,6 @@ public class HashTagPatternParser extends FaweParser<Pattern> {
|
||||
}
|
||||
pattern = (Pattern) dispatcher.call(command, locals, new String[0]);
|
||||
}
|
||||
}
|
||||
patterns.add(pattern);
|
||||
chances.add(chance);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user