Fixed some deprecated things, removed some unneeded imports.

This commit is contained in:
nossr50
2012-08-07 17:41:13 -07:00
parent 9a39dead4f
commit 729e4a6eac
2 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class CallOfTheWildEventHandler {
}
protected void spawnCreature() {
LivingEntity entity = (LivingEntity) 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);