mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
team color parameter may be null, causing NPE
This commit is contained in:
@@ -3446,8 +3446,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ CraftScoreboard scoreboard = checkState();
|
+ CraftScoreboard scoreboard = checkState();
|
||||||
+ if (color == null) {
|
+ if (color == null) {
|
||||||
+ this.team.setColor(net.minecraft.ChatFormatting.RESET);
|
+ 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
|
+ // Paper end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user