geforkt von Mirrors/Paper
Fix custom statistic criteria creation
Dieser Commit ist enthalten in:
Ursprung
8bcd04ae9b
Commit
01ef5a53c4
@ -256,4 +256,6 @@ public interface UnsafeValues {
|
||||
@Deprecated(since = "1.21.3", forRemoval = true)
|
||||
void setBiomeKey(RegionAccessor accessor, int x, int y, int z, NamespacedKey biomeKey);
|
||||
// Paper end - namespaced key biome methods
|
||||
|
||||
String getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic); // Paper - fix custom stats criteria creation
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ public interface Criteria {
|
||||
@NotNull
|
||||
public static Criteria statistic(@NotNull Statistic statistic) {
|
||||
Preconditions.checkArgument(statistic != null, "statistic must not be null");
|
||||
return Bukkit.getScoreboardCriteria("minecraft.custom:minecraft." + statistic.getKey().getKey());
|
||||
return Bukkit.getScoreboardCriteria(org.bukkit.Bukkit.getUnsafe().getStatisticCriteriaKey(statistic)); // Paper
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren