From ff09ff07f9db2c298a718d34a9d2d0b268a093a6 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Mon, 2 Jul 2012 15:36:49 -0500 Subject: [PATCH] Fix deprecated spawnCreature. Fixes BUKKIT-1880 --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index b970ef8c9f..e856b19aee 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); }