geforkt von Mirrors/Velocity
Remove usage of Optional
Dieser Commit ist enthalten in:
Ursprung
c8d50f3fdd
Commit
f2b20e6398
@ -281,5 +281,5 @@ public interface Player extends CommandSource, Identified, InboundConnection,
|
||||
*
|
||||
* @return the player's client brand
|
||||
*/
|
||||
Optional<String> getClientBrand();
|
||||
@Nullable String getClientBrand();
|
||||
}
|
||||
|
@ -873,8 +873,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<String> getClientBrand() {
|
||||
return Optional.ofNullable(clientBrand);
|
||||
public String getClientBrand() {
|
||||
return clientBrand;
|
||||
}
|
||||
|
||||
void setClientBrand(String clientBrand) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren