3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Allow clearing favicon in ServerPing builder.

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-02-09 14:36:10 -05:00
Ursprung 55cc416b52
Commit 3aee47166f
2 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -262,6 +262,11 @@ public final class ServerPing {
return this;
}
public Builder clearFavicon() {
this.favicon = null;
return this;
}
/**
* Uses the information from this builder to create a new {@link ServerPing} instance. The
* builder can be re-used after this event has been called.

Datei anzeigen

@ -35,6 +35,11 @@ class MinecraftChannelIdentifierTest {
assertEquals(expected, MinecraftChannelIdentifier.from("velocity:test"));
}
@Test
void createAllowsSlashes() {
create("velocity", "test/test2");
}
@Test
void fromIdentifierThrowsOnBadValues() {
assertAll(