13
0
geforkt von Mirrors/Paper

team color parameter may be null, causing NPE

Dieser Commit ist enthalten in:
rgnter 2022-05-21 11:27:12 +02:00
Ursprung 85db1f6205
Commit e8ad5b0aa4

Datei anzeigen

@ -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