1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 01:25:26 +02:00

Merge branch 'master' of github.com:essentials/Essentials

This commit is contained in:
KHobbits
2012-04-16 21:43:19 +01:00

View File

@@ -62,7 +62,7 @@ public class EssentialsEntityListener implements Listener
}
else if (eDefend instanceof Animals && eAttack instanceof Player)
{
final User player = ess.getUser(eAttack);
final Player player = (Player)eAttack;
final ItemStack hand = player.getItemInHand();
if (hand != null && hand.getType() == Material.MILK_BUCKET)
{