Removed deprecated CreatureType use.

This commit is contained in:
GJ 2012-02-23 08:29:34 -05:00
parent 37364d6c86
commit 02a67e330a

View File

@ -25,8 +25,8 @@ import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.CreatureType;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.entity.Wolf; import org.bukkit.entity.Wolf;
@ -323,7 +323,7 @@ public class mcPlayerListener implements Listener
} }
} }
World world = player.getWorld(); World world = player.getWorld();
world.spawnCreature(player.getLocation(), CreatureType.WOLF); world.spawnCreature(player.getLocation(), EntityType.WOLF);
ItemStack[] inventory = player.getInventory().getContents(); ItemStack[] inventory = player.getInventory().getContents();
for(ItemStack x : inventory){ for(ItemStack x : inventory){