diff --git a/server/src/org/moparforia/server/game/gametypes/GolfGame.java b/server/src/org/moparforia/server/game/gametypes/GolfGame.java index 13373b73..e525489d 100644 --- a/server/src/org/moparforia/server/game/gametypes/GolfGame.java +++ b/server/src/org/moparforia/server/game/gametypes/GolfGame.java @@ -204,7 +204,7 @@ protected boolean checkRecord() { } Track track = tracks.get(currentTrack); - if (track.getFirstBestPlayer().equals("") || track.getBestPar() > getLeadingPar()) { // first ever record OR beat previous + if ("".equals(track.getFirstBestPlayer()) || track.getBestPar() > getLeadingPar()) { // first ever record OR beat previous TrackManager.updateStats(track, getLeadingPlayer(), getLeadingPar(), true); return true; } else if (track.getBestPar() == getLeadingPar()) { // matched par, latest @@ -307,4 +307,4 @@ public String getGameString() { waterEvent, collision, trackScoring, trackScoringEnd, getPlayers().size()); } -} \ No newline at end of file +}