mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Fix improper optional usage in velocity
This commit is contained in:
@@ -61,7 +61,8 @@ public class ACFVelocityUtil {
|
||||
}
|
||||
|
||||
Optional<Player> exactMatch = server.getPlayer(partialName);
|
||||
if (exactMatch != null) {
|
||||
//noinspection OptionalIsPresent
|
||||
if (exactMatch.isPresent()) {
|
||||
return Collections.singleton(exactMatch.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user