Skip to content

Commit 40834f7

Browse files
committed
Update deprecated usage
1 parent 53523c4 commit 40834f7

File tree

1 file changed

+1
-2
lines changed
  • bukkit/version/v1_17_1/src/main/kotlin/io/github/rothes/esu/bukkit

1 file changed

+1
-2
lines changed

bukkit/version/v1_17_1/src/main/kotlin/io/github/rothes/esu/bukkit/AnsiFlattener.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.rothes.esu.bukkit
22

3-
import io.github.rothes.esu.core.user.LogUser
43
import io.github.rothes.esu.core.util.ComponentUtils
54
import io.github.rothes.esu.lib.net.kyori.adventure.text.Component
65
import io.github.rothes.esu.lib.net.kyori.adventure.text.TranslatableComponent
@@ -32,7 +31,7 @@ object AnsiFlattener {
3231

3332
val translated = language.getOrDefault(translatable.key())
3433
val matcher = PATTERN.matcher(translated)
35-
val args = translatable.args() // arguments() is not there on Paper 1.20.1
34+
val args = translatable.arguments()
3635
var argId = 0
3736
var right = 0
3837
while (matcher.find()) {

0 commit comments

Comments
 (0)