Wolf summoning now correctly uses up the bones.

Now to figure out why Ocelot summoning isn't using up the fish.
This commit is contained in:
GJ 2012-03-05 01:25:24 -05:00
parent 7dc1a2ba72
commit 99bff1a4f9

View File

@ -260,7 +260,9 @@ public class mcPlayerListener implements Listener
if(player.isSneaking() && mcPermissions.getInstance().taming(player) && (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK)) if(player.isSneaking() && mcPermissions.getInstance().taming(player) && (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK))
{ {
if(is.getType().equals(Material.RAW_FISH))
Taming.animalSummon(EntityType.OCELOT, player); Taming.animalSummon(EntityType.OCELOT, player);
if(is.getType().equals(Material.BONE))
Taming.animalSummon(EntityType.WOLF, player); Taming.animalSummon(EntityType.WOLF, player);
} }