From 6a48c1666944d0820865df0858acb5bb3d2968f2 Mon Sep 17 00:00:00 2001 From: NEZNAMY Date: Sat, 13 Jul 2024 16:03:00 +0200 Subject: [PATCH] Allow empty objective on score remove, because the game allows it --- .../proxy/scoreboard/downstream/DownstreamScoreboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/scoreboard/downstream/DownstreamScoreboard.java b/proxy/src/main/java/com/velocitypowered/proxy/scoreboard/downstream/DownstreamScoreboard.java index 03c8587..1ad3c7f 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/scoreboard/downstream/DownstreamScoreboard.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/scoreboard/downstream/DownstreamScoreboard.java @@ -189,7 +189,7 @@ private boolean handleSet(@NotNull String objectiveName, @NotNull String holder, } private boolean handleReset(@Nullable String objectiveName, @NotNull String holder) { - if (objectiveName == null) { + if (objectiveName == null || objectiveName.isEmpty()) { for (DownstreamObjective objective : objectives.values()) { objective.removeScore(holder); }