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
  • Loading branch information
diogotcorreia committed Feb 4, 2025
1 parent bfde332 commit 7b7812d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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.Nullable;

import java.util.HashMap;
Expand Down Expand Up @@ -229,8 +230,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 7b7812d

Please sign in to comment.