Fix improper optional usage in velocity

This commit is contained in:
Aikar
2019-02-23 21:22:30 -05:00
parent 805e5a62ed
commit 5c1d446c19
@@ -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());
}