Remove usage of Optional
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user