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

Do we have to remind @khobbits not to code while drunk. Again.

This commit is contained in:
md_5
2012-04-16 19:43:53 +10:00
parent 327a57de3c
commit 8eb7428ad1

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)
{