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
|
* @return the player's client brand
|
||||||
*/
|
*/
|
||||||
Optional<String> getClientBrand();
|
@Nullable String getClientBrand();
|
||||||
}
|
}
|
||||||
|
@@ -873,8 +873,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<String> getClientBrand() {
|
public String getClientBrand() {
|
||||||
return Optional.ofNullable(clientBrand);
|
return clientBrand;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setClientBrand(String clientBrand) {
|
void setClientBrand(String clientBrand) {
|
||||||
|
Reference in New Issue
Block a user