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

Method StopBurning

src/Entities/Entity.cpp:1062–1075  ·  view source on GitHub ↗

Stops the entity from burning, resets all burning timers

Source from the content-addressed store, hash-verified

1060
1061/// Stops the entity from burning, resets all burning timers
1062void cEntity::StopBurning(void)
1063{
1064 bool HasBeenBurning = (m_TicksLeftBurning > 0);
1065 m_TicksLeftBurning = 0;
1066 m_TicksSinceLastBurnDamage = 0;
1067 m_TicksSinceLastFireDamage = 0;
1068 m_TicksSinceLastLavaDamage = 0;
1069
1070 // Notify if the entity has stopped burning
1071 if (HasBeenBurning)
1072 {
1073 OnFinishedBurning();
1074 }
1075}
1076
1077
1078

Callers 1

OnNextBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected