mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
CreatureSpawnEvent: Fix forgotten inheritance with CreatureType
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
2fddd09aea
commit
3669bb0d8b
1 changed files with 3 additions and 2 deletions
|
@ -200,8 +200,6 @@ public class CraftEventFactory {
|
||||||
type = CreatureType.GHAST;
|
type = CreatureType.GHAST;
|
||||||
} else if (entityliving instanceof EntityGiantZombie) {
|
} else if (entityliving instanceof EntityGiantZombie) {
|
||||||
type = CreatureType.GIANT;
|
type = CreatureType.GIANT;
|
||||||
} else if (entityliving instanceof EntityMonster) {
|
|
||||||
type = CreatureType.MONSTER;
|
|
||||||
} else if (entityliving instanceof EntityPig) {
|
} else if (entityliving instanceof EntityPig) {
|
||||||
type = CreatureType.PIG;
|
type = CreatureType.PIG;
|
||||||
} else if (entityliving instanceof EntityPigZombie) {
|
} else if (entityliving instanceof EntityPigZombie) {
|
||||||
|
@ -218,6 +216,9 @@ public class CraftEventFactory {
|
||||||
type = CreatureType.SQUID;
|
type = CreatureType.SQUID;
|
||||||
} else if (entityliving instanceof EntityZombie) {
|
} else if (entityliving instanceof EntityZombie) {
|
||||||
type = CreatureType.ZOMBIE;
|
type = CreatureType.ZOMBIE;
|
||||||
|
// Supertype of many, last!
|
||||||
|
} else if (entityliving instanceof EntityMonster) {
|
||||||
|
type = CreatureType.MONSTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureSpawnEvent event = new CreatureSpawnEvent(entity, type, entity.getLocation());
|
CreatureSpawnEvent event = new CreatureSpawnEvent(entity, type, entity.getLocation());
|
||||||
|
|
Loading…
Reference in a new issue