13
0
geforkt von Mirrors/Paper

SPIGOT-2810: Fix entity statistics

Dieser Commit ist enthalten in:
BlackHole 2016-11-20 20:10:39 +01:00
Ursprung ac99d7d474
Commit 7fc4255d1a

Datei anzeigen

@ -132,7 +132,7 @@ public class CraftStatistic {
} }
public static net.minecraft.server.Statistic getEntityStatistic(org.bukkit.Statistic stat, EntityType entity) { 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 (monsteregginfo != null) {
if (stat == org.bukkit.Statistic.KILL_ENTITY) { if (stat == org.bukkit.Statistic.KILL_ENTITY) {