Skip to content

Commit

Permalink
packetevents version represented as string only provides snapshotComm…
Browse files Browse the repository at this point in the history
…it if it is a snapshot, not for stable releases.
  • Loading branch information
retrooper authored Aug 9, 2024
1 parent 31ac149 commit c4ce7b7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ public PEVersion clone() {
*/
@Override
public String toString() {
return major + "." + minor + "." + patch
+ (snapshotCommit != null ? "+" + snapshotCommit : "")
+ (snapshot ? "-SNAPSHOT" : "");
return major + "." + minor + "." + patch + (snapshot && snapshotCommit != null ? ("+" + snapshotCommit + "-SNAPSHOT") : "");
}

/**
Expand Down

0 comments on commit c4ce7b7

Please sign in to comment.