mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 05:08:48 +00:00
Merge branch 'master' of github.com:essentials/Essentials
This commit is contained in:
commit
425a2184c6
|
@ -62,7 +62,7 @@ public class EssentialsEntityListener implements Listener
|
||||||
}
|
}
|
||||||
else if (eDefend instanceof Animals && eAttack instanceof Player)
|
else if (eDefend instanceof Animals && eAttack instanceof Player)
|
||||||
{
|
{
|
||||||
final User player = ess.getUser(eAttack);
|
final Player player = (Player)eAttack;
|
||||||
final ItemStack hand = player.getItemInHand();
|
final ItemStack hand = player.getItemInHand();
|
||||||
if (hand != null && hand.getType() == Material.MILK_BUCKET)
|
if (hand != null && hand.getType() == Material.MILK_BUCKET)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue