fix crash when spotify is not present
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m26s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m26s
This commit is contained in:
parent
54533140d2
commit
465e2be922
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ public class HUD extends Feature {
|
|||
infoString += " | ";
|
||||
if (showPing)
|
||||
infoString += "Ping: " + (ServerDataManager.ping + (pingJitter ? (int) (Math.random() * pingJitterAmount) : 0)) + " | Players: " + ServerDataManager.players + "/" + ServerDataManager.maxPlayers + "\n";
|
||||
if (showSpotify) {
|
||||
if (showSpotify && Features.isFeatureEnabled(Spotify.class)) {
|
||||
SpotifyAPI api = Features.getFeature(Spotify.class).api;
|
||||
|
||||
if (api != null && api.isConnected() && api.hasPosition() && api.hasTrack()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue