mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
Fix custom statistic criteria creation
This commit is contained in:
parent
06b00246a2
commit
3b2125b47d
@ -608,6 +608,12 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
public void setBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z, org.bukkit.NamespacedKey biomeKey) {
|
||||
accessor.setBiome(x, y, z, org.bukkit.Registry.BIOME.getOrThrow(biomeKey));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getStatisticCriteriaKey(org.bukkit.Statistic statistic) {
|
||||
if (statistic.getType() != org.bukkit.Statistic.Type.UNTYPED) return "minecraft.custom:minecraft." + statistic.getKey().getKey();
|
||||
return org.bukkit.craftbukkit.CraftStatistic.getNMSStatistic(statistic).getName();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user