mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
Fix CreatureType of CreatureSpawn event
This commit is contained in:
parent
93fff2d5f5
commit
ce714ab329
1 changed files with 12 additions and 12 deletions
|
@ -190,29 +190,29 @@ public class CraftEventFactory {
|
||||||
|
|
||||||
CreatureType type = null;
|
CreatureType type = null;
|
||||||
|
|
||||||
if (entity instanceof EntityChicken) {
|
if (entityliving instanceof EntityChicken) {
|
||||||
type = CreatureType.CHICKEN;
|
type = CreatureType.CHICKEN;
|
||||||
} else if (entity instanceof EntityCow) {
|
} else if (entityliving instanceof EntityCow) {
|
||||||
type = CreatureType.COW;
|
type = CreatureType.COW;
|
||||||
} else if (entity instanceof EntityCreeper) {
|
} else if (entityliving instanceof EntityCreeper) {
|
||||||
type = CreatureType.CREEPER;
|
type = CreatureType.CREEPER;
|
||||||
} else if (entity instanceof EntityGhast) {
|
} else if (entityliving instanceof EntityGhast) {
|
||||||
type = CreatureType.GHAST;
|
type = CreatureType.GHAST;
|
||||||
} else if (entity instanceof EntityPig) {
|
} else if (entityliving instanceof EntityPig) {
|
||||||
type = CreatureType.PIG;
|
type = CreatureType.PIG;
|
||||||
} else if (entity instanceof EntityPigZombie) {
|
} else if (entityliving instanceof EntityPigZombie) {
|
||||||
type = CreatureType.PIG_ZOMBIE;
|
type = CreatureType.PIG_ZOMBIE;
|
||||||
} else if (entity instanceof EntitySheep) {
|
} else if (entityliving instanceof EntitySheep) {
|
||||||
type = CreatureType.SHEEP;
|
type = CreatureType.SHEEP;
|
||||||
} else if (entity instanceof EntitySkeleton) {
|
} else if (entityliving instanceof EntitySkeleton) {
|
||||||
type = CreatureType.SKELETON;
|
type = CreatureType.SKELETON;
|
||||||
} else if (entity instanceof EntitySheep) {
|
} else if (entityliving instanceof EntitySpider) {
|
||||||
type = CreatureType.SPIDER;
|
type = CreatureType.SPIDER;
|
||||||
} else if (entity instanceof EntityZombie) {
|
} else if (entityliving instanceof EntityZombie) {
|
||||||
type = CreatureType.ZOMBIE;
|
type = CreatureType.ZOMBIE;
|
||||||
} else if (entity instanceof EntitySlime) {
|
} else if (entityliving instanceof EntitySlime) {
|
||||||
type = CreatureType.SLIME;
|
type = CreatureType.SLIME;
|
||||||
} else if (entity instanceof EntitySquid) {
|
} else if (entityliving instanceof EntitySquid) {
|
||||||
type = CreatureType.SQUID;
|
type = CreatureType.SQUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue