mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-2810: Fix entity statistics
This commit is contained in:
1 parent
ac99d7d474
commit
7fc4255d1a
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user