Fix TranslatableText

This commit is contained in:
Felix Cravic 2020-06-29 22:19:48 +02:00
parent bd3aa9881e
commit fad0373cb2

View File

@ -10,7 +10,11 @@ public class TranslatableText {
this.arguments = arguments; this.arguments = arguments;
} }
public static TranslatableText TranslatableText(String code, String... arguments) { public static TranslatableText of(String code) {
return new TranslatableText(code, null);
}
public static TranslatableText of(String code, String... arguments) {
return new TranslatableText(code, arguments); return new TranslatableText(code, arguments);
} }