Fix deprecated spawnCreature. Fixes BUKKIT-1880
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user