mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Merge
This commit is contained in:
parent
65c90b951a
commit
020079df9a
3 changed files with 5 additions and 17 deletions
|
@ -165,8 +165,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
--- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java
|
||||
@@ -0,0 +0,0 @@ final class CraftTeam extends CraftScoreboardComponent implements Team {
|
||||
throw new IllegalArgumentException("Unknown visibility level " + visibility);
|
||||
}
|
||||
|
||||
return getScoreboard();
|
||||
}
|
||||
+
|
||||
+ // Spigot start
|
||||
|
|
|
@ -84,8 +84,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
|
||||
@Override
|
||||
@@ -0,0 +0,0 @@ final class CraftTeam extends CraftScoreboardComponent implements Team {
|
||||
throw new IllegalArgumentException("Unknown visibility level " + visibility);
|
||||
}
|
||||
|
||||
return getScoreboard();
|
||||
}
|
||||
-
|
||||
- // Spigot start
|
||||
|
|
|
@ -10,20 +10,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
--- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScore.java
|
||||
@@ -0,0 +0,0 @@ final class CraftScore implements Score {
|
||||
Scoreboard board = objective.checkState().board;
|
||||
|
||||
if (board.getPlayers().contains(entry)) { // Lazy
|
||||
- Map<String, ScoreboardScore> scores = board.getPlayerObjectives(entry);
|
||||
+ Map<net.minecraft.server.ScoreboardObjective, ScoreboardScore> scores = board.getPlayerObjectives(entry); // Spigot
|
||||
ScoreboardScore score = scores.get(objective.getHandle());
|
||||
if (score != null) { // Lazy
|
||||
return score.getScore();
|
||||
@@ -0,0 +0,0 @@ final class CraftScore implements Score {
|
||||
}
|
||||
|
||||
// Spigot start
|
||||
- @Override
|
||||
+ @Override
|
||||
@Override
|
||||
public boolean isScoreSet() throws IllegalStateException {
|
||||
- throw new UnsupportedOperationException("Not supported yet.");
|
||||
+ Scoreboard board = objective.checkState().board;
|
||||
|
|
Loading…
Reference in a new issue