Skip to content

Commit 036058c

Browse files
Update UpdateAlerts.java
1 parent d8e1320 commit 036058c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/github/techstreet/dfscript/features/UpdateAlerts.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public void load() {
2020
int versionsBehind = latestVersion - currentVersion;
2121

2222
if (versionsBehind >= 1) {
23-
MutableText message = (LiteralText) Text.of("")
24-
.append((LiteralText) Text.of(String.format("You are currently on build #%s of DFScript, which is %s versions behind the latest (%s). ",
25-
currentVersion, versionsBehind, latestVersion))
23+
MutableText message = ((LiteralText) Text.of(""))
24+
.append(((LiteralText) Text.of(String.format("You are currently on build #%s of DFScript, which is %s versions behind the latest (%s). ",
25+
currentVersion, versionsBehind, latestVersion)))
2626
.styled(style -> style.withColor(Formatting.YELLOW)))
27-
.append((LiteralText) Text.of"Click here to download the latest version!")
27+
.append(((LiteralText) Text.of("Click here to download the latest version!"))
2828
.styled(style -> {
2929
style.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://github.com/TechStreetDev/DFScript/releases/latest"));
3030
style.withColor(Formatting.AQUA);

0 commit comments

Comments
 (0)