mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
team color parameter may be null, causing NPE
This commit is contained in:
parent
85db1f6205
commit
e8ad5b0aa4
1 changed files with 2 additions and 1 deletions
|
@ -3446,8 +3446,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ CraftScoreboard scoreboard = checkState();
|
||||
+ if (color == null) {
|
||||
+ this.team.setColor(net.minecraft.ChatFormatting.RESET);
|
||||
+ } else {
|
||||
+ this.team.setColor(io.papermc.paper.adventure.PaperAdventure.asVanilla(color));
|
||||
+ }
|
||||
+ team.setColor(io.papermc.paper.adventure.PaperAdventure.asVanilla(color));
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
||||
|
|
Loading…
Reference in a new issue