1
0

Remove redundant DoWithChunkAt in chests

This commit is contained in:
Tiger Wang 2020-08-28 21:43:12 +01:00
parent 5d736b653f
commit d2e92440eb
2 changed files with 6 additions and 12 deletions

View File

@ -53,10 +53,7 @@ void cBlockEntityWithItems::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
} }
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk)
{
// Notify comparators: // Notify comparators:
m_World->WakeUpSimulators(m_Pos); m_World->WakeUpSimulators(m_Pos);
return true;
});
} }

View File

@ -243,10 +243,7 @@ void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
} }
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk)
{
// Notify comparators: // Notify comparators:
m_World->WakeUpSimulators(m_Pos); m_World->WakeUpSimulators(m_Pos);
return true;
});
} }