Skip to content

Commit adb4758

Browse files
committed
Probably fixed incorrect string format in hover event.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent fbf7efd commit adb4758

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/core/api/v1/extensions

1 file changed

+2
-2
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/core/api/v1/extensions/Extensions.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fun hoverEventFrom(
151151
}
152152
)
153153
} else {
154-
HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslationTextComponent(l10n, args))
154+
HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslationTextComponent(l10n, *args))
155155
}
156156

157157
/**
@@ -174,7 +174,7 @@ fun textComponentFrom(
174174
if (safeLocalization) {
175175
getLocalizedString(player.language, l10n, *args)
176176
} else {
177-
TranslationTextComponent(l10n, args).formattedText
177+
TranslationTextComponent(l10n, *args).formattedText
178178
}
179179
}
180180

0 commit comments

Comments
 (0)