Skip to content

Commit

Permalink
Generate version ids together with other version markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed May 6, 2024
1 parent 7336e65 commit b44819d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ public void postConstruct() {
ProtocolVersionList.getProtocolsNewToOld()
.forEach(
version -> {
var versionId = "%s\\|%d".formatted(version.getVersionType().name(), version.getOriginalVersion());
var nativeVersion =
SFVersionConstants.CURRENT_PROTOCOL_VERSION == version
? yesEmoji
Expand All @@ -619,7 +620,7 @@ public void postConstruct() {
SFVersionConstants.isLegacy(version) ? yesEmoji : noEmoji;

builder.append(
"| %s | %s | %s | %s | %s | %s |\n".formatted(version.getName(), nativeVersion, javaVersion,
"| `%s` | `%s` | %s | %s | %s | %s | %s |\n".formatted(version.getName(), versionId, nativeVersion, javaVersion,
snapshotVersion, legacyVersion, bedrockVersion));
});
c.getSource().sendInfo(builder.toString());
Expand Down

0 comments on commit b44819d

Please sign in to comment.