mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Fix deprecated spawnCreature. Fixes BUKKIT-1880
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
cdfbbb4638
commit
e5281e5d53
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue