Browse Source

Removed deprecated function in 1.2.5-R5

GJ 13 years ago
parent
commit
42a1fdf2df

+ 1 - 2
src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java

@@ -55,8 +55,7 @@ public class CallOfTheWildEventHandler {
     }
 
     protected void spawnCreature() {
-//        LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
-        LivingEntity entity = player.getWorld().spawnCreature(player.getLocation(), type);
+        LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
         entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true));
 
         ((Tameable) entity).setOwner(player);