Skip to content

Commit

Permalink
fix(bungee): update scoreboard team wrapper with new upstream types
Browse files Browse the repository at this point in the history
Packet format has changed in 1.21.5, so upstream has changed the types
from a String to NameTagVisibility and CollisionRule.

See SpigotMC/BungeeCord@508c2f7

Port of 7b7812d to v4
  • Loading branch information
diogotcorreia committed Feb 4, 2025
1 parent 032a9f9 commit 26d5667
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import net.md_5.bungee.protocol.NumberFormat;
import net.md_5.bungee.protocol.packet.Chat;
import net.md_5.bungee.protocol.packet.ScoreboardObjective.HealthDisplay;
import net.md_5.bungee.protocol.packet.Team;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -240,8 +241,8 @@ public static class ScoreboardTeam {
private BaseComponent suffix;

// other data (has to be saved for refreshing packet)
private String nameTagVisibility;
private String collisionRule;
private Team.NameTagVisibility nameTagVisibility;
private Team.CollisionRule collisionRule;
private int color;
private byte options;
}
Expand Down

0 comments on commit 26d5667

Please sign in to comment.