mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fix deprecated spawnCreature. Fixes BUKKIT-1880
This commit is contained in:
parent
6093bcc445
commit
ff09ff07f9
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