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

Method SendExplosion

src/ClientHandle.cpp:2095–2107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2093
2094
2095void cClientHandle::SendExplosion(double a_BlockX, double a_BlockY, double a_BlockZ, float a_Radius, const cVector3iArray & a_BlocksAffected, const Vector3d & a_PlayerMotion)
2096{
2097 if (m_NumExplosionsThisTick > MAX_EXPLOSIONS_PER_TICK)
2098 {
2099 LOGD("Dropped an explosion!");
2100 return;
2101 }
2102
2103 // Update the statistics:
2104 m_NumExplosionsThisTick += 1;
2105
2106 m_Protocol->SendExplosion(a_BlockX, a_BlockY, a_BlockZ, a_Radius, a_BlocksAffected, a_PlayerMotion);
2107}
2108
2109
2110

Callers 1

DoExplosionAtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected