diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-07-02 15:36:49 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-07-02 15:36:49 -0500 |
commit | ff09ff07f9db2c298a718d34a9d2d0b268a093a6 (patch) | |
tree | 400967717214b0220d11424c109d959c73c7a482 /src | |
parent | 6093bcc44508395ea8d9a06859388e0a1de6e8a7 (diff) | |
download | craftbukkit-ff09ff07f9db2c298a718d34a9d2d0b268a093a6.tar craftbukkit-ff09ff07f9db2c298a718d34a9d2d0b268a093a6.tar.gz craftbukkit-ff09ff07f9db2c298a718d34a9d2d0b268a093a6.tar.lz craftbukkit-ff09ff07f9db2c298a718d34a9d2d0b268a093a6.tar.xz craftbukkit-ff09ff07f9db2c298a718d34a9d2d0b268a093a6.zip |
Fix deprecated spawnCreature. Fixes BUKKIT-1880
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index b970ef8c..e856b19a 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -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); } |