mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Do we have to remind @khobbits not to code while drunk. Again.
This commit is contained in:
parent
327a57de3c
commit
8eb7428ad1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue