Removed an unnecessary check
This commit is contained in:
parent
7fc1ad19ad
commit
04273de995
@ -149,10 +149,7 @@ public enum FactionTag implements Tag {
|
|||||||
if (!this.foundInString(text)) {
|
if (!this.foundInString(text)) {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
String result = null;
|
String result = this.function == null ? this.biFunction.apply(faction, player) : this.function.apply(faction);
|
||||||
if (this.biFunction != null) {
|
|
||||||
result = this.function == null ? this.biFunction.apply(faction, player) : this.function.apply(faction);
|
|
||||||
}
|
|
||||||
return result == null ? null : text.replace(this.tag, result);
|
return result == null ? null : text.replace(this.tag, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user