Skip to content

Commit

Permalink
Merge pull request #185 from KyoriPowered/fix/forwarding
Browse files Browse the repository at this point in the history
4.1.1: fix forwarding audience overloads
  • Loading branch information
zml2008 authored Oct 17, 2020
2 parents 0869f91 + c4afd42 commit 36e4505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import net.kyori.adventure.sound.Sound;
import net.kyori.adventure.sound.SoundStop;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.ComponentLike;
import net.kyori.adventure.title.Title;
import net.kyori.adventure.identity.Identified;
import org.checkerframework.checker.nullness.qual.NonNull;
Expand Down Expand Up @@ -60,7 +59,7 @@ default void sendMessage(final @NonNull Identified source, final @NonNull Compon
}

@Override
default void sendMessage(final @NonNull Identity source, final @NonNull ComponentLike message, final @NonNull MessageType type) {
default void sendMessage(final @NonNull Identity source, final @NonNull Component message, final @NonNull MessageType type) {
for(final Audience audience : this.audiences()) audience.sendMessage(source, message, type);
}

Expand Down Expand Up @@ -141,12 +140,12 @@ interface Single extends ForwardingAudience {
}

@Override
default void sendMessage(final @NonNull Identified source, final @NonNull ComponentLike message, final @NonNull MessageType type) {
default void sendMessage(final @NonNull Identified source, final @NonNull Component message, final @NonNull MessageType type) {
this.audience().sendMessage(source, message, type);
}

@Override
default void sendMessage(final @NonNull Identity source, final @NonNull ComponentLike message, final @NonNull MessageType type) {
default void sendMessage(final @NonNull Identity source, final @NonNull Component message, final @NonNull MessageType type) {
this.audience().sendMessage(source, message, type);
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

group "net.kyori"
version "4.1.0"
version "4.1.1-SNAPSHOT"
description "A user-interface library for Minecraft: Java Edition."

subprojects {
Expand Down

0 comments on commit 36e4505

Please sign in to comment.