From 729e4a6eac9a7bac6551d00dfaec6c933f883034 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 7 Aug 2012 17:41:13 -0700 Subject: [PATCH] Fixed some deprecated things, removed some unneeded imports. --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 1 - .../gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 9fc80c70a..3796f9325 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -11,7 +11,6 @@ import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerChangedWorldEvent; -import org.bukkit.event.player.PlayerChatEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerFishEvent; import org.bukkit.event.player.PlayerFishEvent.State; diff --git a/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java b/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java index e74e6cf84..a35b99e72 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java @@ -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);