Merge pull request #2624 from Gargaj/patch-2
Only send creeper metadata updates on change
This commit is contained in:
commit
f3d3c9adca
@ -29,9 +29,12 @@ void cCreeper::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
|||||||
|
|
||||||
if (!TargetIsInRange() && !m_BurnedWithFlintAndSteel)
|
if (!TargetIsInRange() && !m_BurnedWithFlintAndSteel)
|
||||||
{
|
{
|
||||||
m_ExplodingTimer = 0;
|
if (m_bIsBlowing)
|
||||||
m_bIsBlowing = false;
|
{
|
||||||
m_World->BroadcastEntityMetadata(*this);
|
m_ExplodingTimer = 0;
|
||||||
|
m_bIsBlowing = false;
|
||||||
|
m_World->BroadcastEntityMetadata(*this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user