mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 03:43:51 -07:00
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user