Fix deprecated spawnCreature. Fixes BUKKIT-1880
This commit is contained in:
parent
6093bcc445
commit
ff09ff07f9
@ -333,7 +333,7 @@ public class CraftWorld implements World {
|
|||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public LivingEntity spawnCreature(Location loc, EntityType creatureType) {
|
public LivingEntity spawnCreature(Location loc, EntityType creatureType) {
|
||||||
Validate.isTrue(!creatureType.isAlive(), "EntityType not instance of LivingEntity");
|
Validate.isTrue(creatureType.isAlive(), "EntityType not instance of LivingEntity");
|
||||||
return (LivingEntity) spawnEntity(loc, creatureType);
|
return (LivingEntity) spawnEntity(loc, creatureType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user