mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 06:02:12 -07:00
net/minecraft/world/scores
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
--- a/net/minecraft/world/scores/ScoreboardSaveData.java
|
--- a/net/minecraft/world/scores/ScoreboardSaveData.java
|
||||||
+++ b/net/minecraft/world/scores/ScoreboardSaveData.java
|
+++ b/net/minecraft/world/scores/ScoreboardSaveData.java
|
||||||
@@ -148,6 +148,7 @@
|
@@ -148,6 +_,7 @@
|
||||||
ListTag listTag = new ListTag();
|
ListTag listTag = new ListTag();
|
||||||
|
|
||||||
for (PlayerTeam playerTeam : this.scoreboard.getPlayerTeams()) {
|
for (PlayerTeam playerTeam : this.scoreboard.getPlayerTeams()) {
|
||||||
+ if (!io.papermc.paper.configuration.GlobalConfiguration.get().scoreboards.saveEmptyScoreboardTeams && playerTeam.getPlayers().isEmpty()) continue; // Paper - Don't save empty scoreboard teams to scoreboard.dat
|
+ if (!io.papermc.paper.configuration.GlobalConfiguration.get().scoreboards.saveEmptyScoreboardTeams && playerTeam.getPlayers().isEmpty()) continue; // Paper - Don't save empty scoreboard teams to scoreboard.dat
|
||||||
CompoundTag compoundTag = new CompoundTag();
|
CompoundTag compoundTag = new CompoundTag();
|
||||||
compoundTag.putString("Name", playerTeam.getName());
|
compoundTag.putString("Name", playerTeam.getName());
|
||||||
compoundTag.putString("DisplayName", Component.Serializer.toJson(playerTeam.getDisplayName(), registries));
|
compoundTag.putString("DisplayName", Component.Serializer.toJson(playerTeam.getDisplayName(), levelRegistry));
|
Reference in New Issue
Block a user