mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Merge devel into master (#78)
* * Turn survival back on for now. * * Add TP command. * * Fix fall damage reset. * * Mob hitting works. I've disabled entity shading though. Will get back to it at some point, promise! * * Knockback * * Mobs now rotate when they die. * * Fire fix
This commit is contained in:
@@ -39,6 +39,10 @@ Player::Player(Level* pLevel) : Mob(pLevel)
|
||||
|
||||
field_C4 = 20;
|
||||
field_B5C = 180.0f;
|
||||
|
||||
// @TEST TEST TEST
|
||||
field_F0 = false;
|
||||
// @TEST TEST TEST
|
||||
}
|
||||
|
||||
Player::~Player()
|
||||
@@ -225,7 +229,9 @@ void Player::animateRespawn(Player*, Level*)
|
||||
|
||||
void Player::attack(Entity* pEnt)
|
||||
{
|
||||
|
||||
int atkDmg = m_pInventory->getAttackDamage(pEnt);
|
||||
if (atkDmg > 0)
|
||||
pEnt->hurt(this, atkDmg);
|
||||
}
|
||||
|
||||
bool Player::canDestroy(Tile* pTile)
|
||||
|
||||
Reference in New Issue
Block a user