mirror of
https://github.com/PaperMC/Velocity.git
synced 2024-12-09 07:01:19 +08:00
Allow clearing favicon in ServerPing builder.
This commit is contained in:
parent
55cc416b52
commit
3aee47166f
@ -262,6 +262,11 @@ public final class ServerPing {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder clearFavicon() {
|
||||||
|
this.favicon = null;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uses the information from this builder to create a new {@link ServerPing} instance. The
|
* 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.
|
* builder can be re-used after this event has been called.
|
||||||
|
@ -35,6 +35,11 @@ class MinecraftChannelIdentifierTest {
|
|||||||
assertEquals(expected, MinecraftChannelIdentifier.from("velocity:test"));
|
assertEquals(expected, MinecraftChannelIdentifier.from("velocity:test"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void createAllowsSlashes() {
|
||||||
|
create("velocity", "test/test2");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void fromIdentifierThrowsOnBadValues() {
|
void fromIdentifierThrowsOnBadValues() {
|
||||||
assertAll(
|
assertAll(
|
||||||
|
Loading…
Reference in New Issue
Block a user