Update Text to 3

This commit is contained in:
Kenzie Togami
2019-05-05 01:37:11 -07:00
committed by Kenzie Togami
parent 4355f8cbf7
commit 1c54a04fd1
7 changed files with 36 additions and 23 deletions

View File

@ -32,7 +32,7 @@ import org.enginehub.piston.inject.InjectedValueAccess;
import java.util.List;
import static com.google.common.base.Preconditions.checkArgument;
import static com.sk89q.worldedit.util.formatting.text.Component.space;
import static com.sk89q.worldedit.util.formatting.text.TextComponent.space;
public class CommaSeparatedValuesConverter<T> implements ArgumentConverter<T> {
@ -61,7 +61,7 @@ public class CommaSeparatedValuesConverter<T> implements ArgumentConverter<T> {
TextComponent.Builder result = TextComponent.builder("");
if (maximum > -1) {
result.append(TextComponent.of("up to "))
.append(Component.of(maximum))
.append(TextComponent.of(maximum))
.append(space());
}
result.append(TextComponent.of("comma separated values of: "))