Skip to content

Commit

Permalink
chore: Adventure 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Feb 28, 2022
1 parent eeffd8e commit a88f59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

// Adventure version
ext.adventure = "4.9.1"
ext.adventure = "4.10.0"

group 'net.kyori'
version '4.1.0-SNAPSHOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static <V> ComponentFlattener get(final V instance, final Collection<? ex
final ComponentFlattener.Builder flattenerBuilder = ComponentFlattener.basic().toBuilder();
flattenerBuilder.complexMapper(TranslatableComponent.class, (translatable, consumer) -> {
final String key = translatable.key();
for (final net.kyori.adventure.translation.Translator registry : GlobalTranslator.get().sources()) {
for (final net.kyori.adventure.translation.Translator registry : GlobalTranslator.translator().sources()) {
if (registry instanceof TranslationRegistry && ((TranslationRegistry) registry).contains(key)) {
consumer.accept(GlobalTranslator.render(translatable, Locale.getDefault()));
return;
Expand Down

0 comments on commit a88f59c

Please sign in to comment.