Removed an unnecessary check

This commit is contained in:
BrowkS 2020-05-06 12:36:24 +03:00
parent 7fc1ad19ad
commit 04273de995

View File

@ -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);
} }