1
0

Improved endermen code a little

This commit is contained in:
Tiger Wang
2014-08-01 22:05:40 +01:00
parent 941a182d8a
commit c865fc8ca5
4 changed files with 57 additions and 21 deletions

View File

@@ -276,7 +276,9 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
if (DoesPosYRequireJump((int)floor(m_Destination.y)))
{
m_bOnGround = false;
AddSpeedY(5.2); // Jump!!
// TODO: Change to AddSpeedY once collision detection is fixed - currently, mobs will go into blocks attempting to jump without a teleport
AddPosY(1.2); // Jump!!
}
}