fixed zombie pigmen attacking player in creative mode
This commit is contained in:
parent
a195ac7172
commit
909c8fd04f
3 changed files with 8 additions and 1 deletions
|
|
@ -195,6 +195,11 @@ bool Player::isUsingItem()
|
|||
return useItem != nullptr;
|
||||
}
|
||||
|
||||
bool Player::isAttackable()
|
||||
{
|
||||
return !abilities.invulnerable;
|
||||
}
|
||||
|
||||
int Player::getTicksUsingItem()
|
||||
{
|
||||
if (isUsingItem())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue