Remove usage of Optional

This commit is contained in:
Artuto
2021-06-12 13:48:42 -05:00
parent c8d50f3fdd
commit f2b20e6398
2 changed files with 3 additions and 3 deletions

View File

@@ -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();
} }

View File

@@ -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) {