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:
iProgramInCpp
2023-09-17 12:47:09 +03:00
committed by GitHub
parent e9b00e6ba1
commit 350100ac48
15 changed files with 225 additions and 8 deletions

View File

@@ -176,6 +176,11 @@ bool ItemInstance::matches(ItemInstance* a1, ItemInstance* a2)
return a1->matches(a2);
}
int ItemInstance::getAttackDamage(Entity *pEnt)
{
return getItem()->getAttackDamage(pEnt);
}
void ItemInstance::mineBlock(int x, int y, int z, int d)
{
return getItem()->mineBlock(this, x, y, z, d);