mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 13:23:50 -07:00
Fix deprecated spawnCreature. Fixes BUKKIT-1880
This commit is contained in:
@@ -333,7 +333,7 @@ public class CraftWorld implements World {
|
||||
|
||||
@Deprecated
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user