Remove DoesDropOnUnsuitable
This is only overridden false in Vines and Snow. It is called when a CanBeAt check fails, to determine whether DropBlockAsPickups is called. However, Vines and Snow already drop nothing without the right tool, so this function is superfluous.
This commit is contained in:
@@ -299,10 +299,7 @@ void cFloodyFluidSimulator::SpreadToNeighbor(cChunk * a_NearChunk, int a_RelX, i
|
||||
// Wash away the block there, if possible:
|
||||
if (CanWashAway(BlockType))
|
||||
{
|
||||
if (cBlockHandler::For(BlockType).DoesDropOnUnsuitable())
|
||||
{
|
||||
m_World.DropBlockAsPickups(absPos, nullptr, nullptr);
|
||||
}
|
||||
m_World.DropBlockAsPickups(absPos, nullptr, nullptr);
|
||||
} // if (CanWashAway)
|
||||
|
||||
// Spread:
|
||||
|
||||
Reference in New Issue
Block a user