Remove redundant DoWithChunkAt in chests
This commit is contained in:
parent
5d736b653f
commit
d2e92440eb
@ -53,10 +53,7 @@ void cBlockEntityWithItems::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
||||
}
|
||||
|
||||
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
|
||||
m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk)
|
||||
{
|
||||
|
||||
// Notify comparators:
|
||||
m_World->WakeUpSimulators(m_Pos);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
@ -243,10 +243,7 @@ void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
||||
}
|
||||
|
||||
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
|
||||
m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk)
|
||||
{
|
||||
|
||||
// Notify comparators:
|
||||
m_World->WakeUpSimulators(m_Pos);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user