MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandleEntitySprinting

Method HandleEntitySprinting

src/ClientHandle.cpp:1490–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488
1489
1490void cClientHandle::HandleEntitySprinting(int a_EntityID, bool a_IsSprinting)
1491{
1492 if (a_EntityID != m_Player->GetUniqueID())
1493 {
1494 // We should only receive entity actions from the entity that is performing the action
1495 return;
1496 }
1497
1498 m_Player->SetSprint(a_IsSprinting);
1499}
1500
1501
1502

Callers 3

ParseEntityActionMethod · 0.80
ParseEntityActionMethod · 0.80

Calls 2

SetSprintMethod · 0.80
GetUniqueIDMethod · 0.45

Tested by

no test coverage detected