mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-2810: Fix entity statistics
By: BlackHole <black-hole@live.com>
This commit is contained in:
parent
6d1f84a8e1
commit
8d52a891a4
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ public class CraftStatistic {
|
|||
}
|
||||
|
||||
public static net.minecraft.server.Statistic getEntityStatistic(org.bukkit.Statistic stat, EntityType entity) {
|
||||
MonsterEggInfo monsteregginfo = (MonsterEggInfo) EntityTypes.eggInfo.get(entity.getName());
|
||||
MonsterEggInfo monsteregginfo = (MonsterEggInfo) EntityTypes.eggInfo.get(new MinecraftKey(entity.getName()));
|
||||
|
||||
if (monsteregginfo != null) {
|
||||
if (stat == org.bukkit.Statistic.KILL_ENTITY) {
|
||||
|
|
Loading…
Reference in a new issue